Browse Source

separate env steps for now

Matthew R Kasun 4 years ago
parent
commit
1012fd3643
1 changed files with 8 additions and 4 deletions
  1. 8 4
      .github/workflows/publish-docker.yml

+ 8 - 4
.github/workflows/publish-docker.yml

@@ -11,6 +11,14 @@ jobs:
   docker:
     runs-on: ubuntu-latest
     steps:
+      -
+        name: Env Vars - Master
+        if: ${{ github.head_ref }} "master"
+        run: echo "TAG=latest" >> $GITHUB_ENV
+      -
+        name: Env Vars - Develop
+        if: ${{ github.head_ref }} "develop"
+        run: echo "TAG=develop" >> $GITHUB_ENV
       -
         name: Checkout
         uses: actions/checkout@v2
@@ -35,7 +43,3 @@ jobs:
           push: false
           tags: |
             nusak/netmaker:${{ env.TAG }}
-            if ${{ github.head_ref }} = "master"
-              nusak/netmaker:latest
-            if ${{ github.head_ref }} = "develop"
-              nusak/netmaker:latest