mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-20 07:16:06 +08:00
Merge pull request #532 from desty2k/master
Fix getting tag in Docker Publish workflow
This commit is contained in:
commit
5a62559594
4
.github/workflows/publish-docker.yml
vendored
4
.github/workflows/publish-docker.yml
vendored
|
@ -18,10 +18,10 @@ jobs:
|
|||
run: |
|
||||
if [[ -n "${{ github.event.inputs.tag }}" ]]; then
|
||||
TAG=${{ github.event.inputs.tag }}
|
||||
elif [[ "${{ github.base_ref }}" == 'master' ]]; then
|
||||
elif [[ "${{ github.ref_name }}" == 'master' ]]; then
|
||||
TAG="latest"
|
||||
else
|
||||
TAG="${{ github.base_ref }}"
|
||||
TAG="${{ github.ref_name }}"
|
||||
fi
|
||||
echo "TAG=${TAG}" >> $GITHUB_ENV
|
||||
-
|
||||
|
|
Loading…
Reference in a new issue