Skip to content

Commit

Permalink
[-] fix tag_semver in the Release workflow, closes #471
Browse files Browse the repository at this point in the history
  • Loading branch information
pashagolub committed Apr 27, 2022
1 parent a0c5462 commit 5ef662d
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
buildargs: GIT_HASH,GIT_TIME
tags: ${{ github.ref_name }}

- name: Publish release version to Registry
- name: Publish "latest" tag to Registry
if: ${{ !contains(github.ref_name, 'beta') }}
uses: elgohr/Publish-Docker-Github-Action@v4
env:
Expand All @@ -73,4 +73,17 @@ jobs:
dockerfile: docker/Dockerfile${{ matrix.image }}
buildargs: GIT_HASH,GIT_TIME
tags: "latest"
tag_semver: true

- name: Publish "X.X.X, X.X, X" tags to Registry
if: ${{ !contains(github.ref_name, 'beta') }}
uses: elgohr/Publish-Docker-Github-Action@v4
env:
GIT_HASH: ${{ steps.version.outputs.RELEASE_VERSION }}
GIT_TIME: ${{ steps.version.outputs.RELEASE_TIME }}
with:
name: cybertec/pgwatch2${{ matrix.image }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: docker/Dockerfile${{ matrix.image }}
buildargs: GIT_HASH,GIT_TIME
tag_semver: true

0 comments on commit 5ef662d

Please sign in to comment.