Browse Source

Update publish-docker.yml

Matthew R Kasun 4 years ago
parent
commit
816e157fc1
1 changed files with 2 additions and 3 deletions
  1. 2 3
      .github/workflows/publish-docker.yml

+ 2 - 3
.github/workflows/publish-docker.yml

@@ -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