From 41695d98300388908bca8cdba09696ebe979db01 Mon Sep 17 00:00:00 2001 From: Webb Scales Date: Thu, 31 Aug 2023 13:54:03 -0400 Subject: [PATCH] Build containers for pushes to main and only published releases --- .github/workflows/container_build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/container_build.yml b/.github/workflows/container_build.yml index f2d32b6..7026d6c 100644 --- a/.github/workflows/container_build.yml +++ b/.github/workflows/container_build.yml @@ -1,15 +1,15 @@ name: Create and publish a Docker image -# Configure this workflow to run every time a change is pushed to a branch -# whose name starts with `release/` or any time a tag is created; this workflow -# is also run any time a GitHub release is created or updated ("unpublish" and -# deletions do not cause it to run). +# Configure this workflow to run every time a change is pushed to the main +# branch or any branch whose name starts with `release/` or any time a tag is +# created; this workflow is also run any time a GitHub release is published. +# The image will be given a tag which is based on the trigger. on: push: - branches: ['release/**'] + branches: [main, 'release/**'] tags: ['*'] release: - types: [created, edited, prereleased, published, released] + types: [published] # Set up the container image specification to be `quay.io/pbench/file-relay`. env: