Skip to content

Commit

Permalink
fix: push latest tag on publish
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Feb 24, 2025
1 parent b4ae20f commit 13ea129
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ orbs:
jobs:
publish:
docker:
- image: oryd/sdk:v0.0.54
- image: oryd/sdk:latest
working_directory: /sdk
steps:
- checkout
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Extract version
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Push to Docker Hub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_SECRET_AREKKAS }}
repository: oryd/sdk
tag_with_ref: true
push: true
tags: |
oryd/sdk:${{ env.VERSION }}
oryd/sdk:latest

0 comments on commit 13ea129

Please sign in to comment.