From 0b8d12f547cb8cb61ca76e4973b4e785dcc5f17a Mon Sep 17 00:00:00 2001 From: Jamil Date: Sat, 16 Dec 2023 07:54:26 -0800 Subject: [PATCH] Run publish workflow on release publish (#2912) When a release draft is published, run this workflow so that customers will be able to pull associated Docker images. --------- Signed-off-by: Jamil Co-authored-by: Andrew Dryga --- .github/workflows/publish.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4dfdfcc64..73d0f115a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -31,8 +31,7 @@ concurrency: jobs: push-images-to-production-artifacts: if: - ${{ github.ref == 'refs/heads/main' && (github.event_name == 'release' || - inputs.foolproof == true ) }} + ${{ github.event_name == 'release' || (github.ref == 'refs/heads/main' && inputs.foolproof == true) }} runs-on: ubuntu-22.04 strategy: fail-fast: false @@ -76,7 +75,7 @@ jobs: done deploy-production: - if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' || github.event_name == 'release' needs: push-images-to-production-artifacts runs-on: ubuntu-22.04 permissions: @@ -124,7 +123,7 @@ jobs: "Apply Run from GitHub Actions CI ${{ inputs.tag || github.sha }}" publish-images-to-ghcr: - if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'release' }} + if: ${{ github.event_name == 'release' }} needs: deploy-production runs-on: ubuntu-22.04 strategy: