test: allow manual docker image build

Signed-off-by: Andre Wanlin <awanlin@spotify.com>
This commit is contained in:
Andre Wanlin
2023-11-11 18:03:58 -06:00
parent 77a7ef3fa5
commit 826e2af0c5
+3 -1
View File
@@ -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