From d3cc1db2f9bfc1eec2953fc85a20a39a36fa7d5f Mon Sep 17 00:00:00 2001 From: Kay Thomas Date: Tue, 5 Jul 2022 15:18:20 -0700 Subject: [PATCH] Update github workflow --- .github/workflows/docker-image.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 1629402..19b59f9 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -1,11 +1,15 @@ name: Docker Image CI on: - push: - branches: [ main ] + pull_request: + types: + - labeled + branches: + - 'main' jobs: buildx: + if: ${{ github.event.label.name == 'run-workflow' }} runs-on: ubuntu-latest steps: - @@ -31,4 +35,4 @@ jobs: context: . platforms: linux/amd64,linux/arm/v7,linux/arm64 push: true - tags: noisedash/noisedash:latest,noisedash/noisedash:${{ github.ref_name }} + tags: noisedash/noisedash:latest,noisedash/noisedash:${{ github.head_ref }}