Skip to content

Commit 13ea129

Browse files
committed
fix: push latest tag on publish
1 parent b4ae20f commit 13ea129

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ orbs:
55
jobs:
66
publish:
77
docker:
8-
- image: oryd/sdk:v0.0.54
8+
- image: oryd/sdk:latest
99
working_directory: /sdk
1010
steps:
1111
- checkout

.github/workflows/docker-publish.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@ jobs:
99
steps:
1010
- name: Check out the repo
1111
uses: actions/checkout@v2
12+
- name: Extract version
13+
id: get_version
14+
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
1215
- name: Push to Docker Hub
1316
uses: docker/build-push-action@v1
1417
with:
1518
username: ${{ secrets.DOCKER_USERNAME }}
1619
password: ${{ secrets.DOCKER_SECRET_AREKKAS }}
1720
repository: oryd/sdk
18-
tag_with_ref: true
21+
push: true
22+
tags: |
23+
oryd/sdk:${{ env.VERSION }}
24+
oryd/sdk:latest

0 commit comments

Comments
 (0)