Skip to content

Commit

Permalink
Merge pull request #472 from cybertec-postgresql/471_fix_semver_relea…
Browse files Browse the repository at this point in the history
…se_gha

[-] fix `tag_semver` in the `Release` workflow, closes #471
  • Loading branch information
pashagolub authored Apr 27, 2022
2 parents a0c5462 + 5ef662d commit d562905
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 d562905

Please sign in to comment.