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 }}