diff --git a/.github/workflows/build-and-push-dockerimage.yml b/.github/workflows/build-and-push-dockerimage.yml index 249bc82..1f79c55 100644 --- a/.github/workflows/build-and-push-dockerimage.yml +++ b/.github/workflows/build-and-push-dockerimage.yml @@ -1,10 +1,9 @@ name: Docker Image Build and Push to ghcr :) on: - push: - branches: [ "main" ] pull_request: branches: [ "main" ] + types: [ labeled ] # Adding this so that I can test my jobs and run workflows manually from the Actions tab in the repository workflow_dispatch: @@ -15,6 +14,7 @@ env: jobs: build-and-push: + if: ${{ github.event.label.name == 'CI:Build' }} runs-on: ubuntu-latest permissions: contents: read