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