From 19b3b97571fa8114ba45ed002f606cb5eda94a34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donncha=20=C3=93=20Cearbhaill?= Date: Wed, 23 Oct 2024 12:04:53 +0200 Subject: [PATCH] Build Docker image on release rather than on branch (#561) * Build image on release * Allow workflow to be trigger manually outside of releases --- .github/workflows/publish-release-docker.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-release-docker.yml b/.github/workflows/publish-release-docker.yml index ad11223e..067611cd 100644 --- a/.github/workflows/publish-release-docker.yml +++ b/.github/workflows/publish-release-docker.yml @@ -1,10 +1,11 @@ # name: Create and publish a Docker image -# Configures this workflow to run every time a change is pushed to the branch called `release`. +# Configures this workflow to run every time a release is published. on: - push: - branches: ['release'] + workflow_dispatch: + release: + types: [published] # Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds. env: