test: allow manual docker image build
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user