Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

[-] fix tag_semver in the Release workflow, closes #471 #472

Merged
merged 1 commit into from
Apr 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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