mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-10 16:50:46 +08:00
update publish docker workflow to run on published release
This commit is contained in:
parent
d3b1773da9
commit
8ba906d615
1 changed files with 4 additions and 7 deletions
11
.github/workflows/publish-docker.yml
vendored
11
.github/workflows/publish-docker.yml
vendored
|
|
@ -6,10 +6,8 @@ on:
|
||||||
tag:
|
tag:
|
||||||
description: 'docker tag'
|
description: 'docker tag'
|
||||||
required: true
|
required: true
|
||||||
pull_request:
|
release:
|
||||||
branches:
|
types: [published]
|
||||||
- 'test'
|
|
||||||
- 'master'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
|
|
@ -31,8 +29,7 @@ jobs:
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v1
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
- if: github.event_name != 'pull_request'
|
- name: Login to DockerHub
|
||||||
name: Login to DockerHub
|
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
|
@ -42,5 +39,5 @@ jobs:
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64, linux/arm64
|
platforms: linux/amd64, linux/arm64
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: true
|
||||||
tags: gravitl/netmaker:${{ env.TAG }}
|
tags: gravitl/netmaker:${{ env.TAG }}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue