mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-11 01:54:34 +08:00
Update publish-docker.yml
This commit is contained in:
parent
5612a347a3
commit
816e157fc1
1 changed files with 2 additions and 3 deletions
5
.github/workflows/publish-docker.yml
vendored
5
.github/workflows/publish-docker.yml
vendored
|
@ -9,15 +9,14 @@ on:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
uses: FranzDiebold/github-env-vars-action@v2
|
||||
name: Set Environment Variables
|
||||
run: |
|
||||
echo "BUILD_VER=v0.0.$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
|
||||
if [ ${{ CI_HEAD_REF }} = "master" ]
|
||||
if ${{ github.head_ref }} = "master" ]
|
||||
then
|
||||
echo "TAG=latest" >>$GITHUB_ENV
|
||||
else
|
||||
echo "TAG=$CI_HEAD_REF" >> $GITHUB_ENV
|
||||
echo "TAG=${{ github.head_ref}} >> $GITHUB_ENV
|
||||
done
|
||||
-
|
||||
name: Checkout
|
||||
|
|
Loading…
Reference in a new issue