mirror of
https://github.com/gravitl/netmaker.git
synced 2026-04-23 00:17:10 +08:00
update publish docker workflow to run on published release
This commit is contained in:
@@ -6,10 +6,8 @@ on:
|
||||
tag:
|
||||
description: 'docker tag'
|
||||
required: true
|
||||
pull_request:
|
||||
branches:
|
||||
- 'test'
|
||||
- 'master'
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
@@ -31,8 +29,7 @@ jobs:
|
||||
uses: docker/setup-qemu-action@v1
|
||||
- name: Set up Docker Buildx
|
||||
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
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
@@ -42,5 +39,5 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64, linux/arm64
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
push: true
|
||||
tags: gravitl/netmaker:${{ env.TAG }}
|
||||
|
||||
Reference in New Issue
Block a user