Update publish-docker.yml

This commit is contained in:
Matthew R Kasun 2021-04-08 13:56:21 -04:00 committed by GitHub
parent 5612a347a3
commit 816e157fc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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