diff --git a/.github/workflows/deploy_docker-image.yml b/.github/workflows/deploy_docker-image.yml index 5dded52233..89177b971f 100644 --- a/.github/workflows/deploy_docker-image.yml +++ b/.github/workflows/deploy_docker-image.yml @@ -1,5 +1,7 @@ name: Build and push Docker image on: + workflow_dispatch: + repository_dispatch: types: [release-published] @@ -59,7 +61,7 @@ jobs: with: context: './example-app' file: ./example-app/packages/backend/Dockerfile - push: true + push: ${{ github.event_name == "repository_dispatch" && github.event.action == "release-published" }} platforms: linux/amd64,linux/arm64 tags: | ghcr.io/${{ github.repository_owner }}/backstage:latest