another refinement

This commit is contained in:
Matthew R Kasun 2021-04-08 15:34:09 -04:00
parent c27278158e
commit 6cd2bbcb94

View file

@ -5,7 +5,6 @@ on:
branches:
- 'develop'
- 'master'
push:
jobs:
docker:
@ -27,22 +26,22 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
if: ${{ github.head_ref }} "master"
name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64, linux/arm64
push: false
push: true
tags: |
nusak/netmaker:latest
-
name: Build and push
if: ${{ github.head_ref }} "develop"
name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64, linux/arm64
push: false
push: true
tags: |
nusak/netmaker:develop