Skip to content

Commit

Permalink
Build Docker image on release rather than on branch (#561)
Browse files Browse the repository at this point in the history
* Build image on release

* Allow workflow to be trigger manually outside of releases
  • Loading branch information
DonnchaC authored Oct 23, 2024
1 parent 2c72d80 commit 19b3b97
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish-release-docker.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 19b3b97

Please sign in to comment.