mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-21 07:46:04 +08:00
refinement
This commit is contained in:
parent
1012fd3643
commit
c27278158e
23
.github/workflows/publish-docker.yml
vendored
23
.github/workflows/publish-docker.yml
vendored
|
@ -11,14 +11,6 @@ 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,11 +27,22 @@ jobs:
|
|||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
name: Build and push
|
||||
name: Build and push
|
||||
if: ${{ github.head_ref }} "master"
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64, linux/arm64
|
||||
push: false
|
||||
tags: |
|
||||
nusak/netmaker:${{ env.TAG }}
|
||||
nusak/netmaker:latest
|
||||
-
|
||||
name: Build and push
|
||||
if: ${{ github.head_ref }} "develop"
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64, linux/arm64
|
||||
push: false
|
||||
tags: |
|
||||
nusak/netmaker:develop
|
||||
|
|
Loading…
Reference in a new issue