diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 4f6e2e6..9c523de 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -1,11 +1,11 @@ name: Build and Publish Docker Image on: - push: - paths: - - ".github/**" - - "src/**" - branches: - - main + workflow_run: + workflows: + - Lint, Analyse and Test + types: + - completed + env: REGISTRY: ghcr.io @@ -14,6 +14,7 @@ env: jobs: build-and-push-image: runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} permissions: contents: read packages: write