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 <jamilbk@users.noreply.github.com>
Co-authored-by: Andrew Dryga <andrew@dryga.com>
This commit is contained in:
Jamil
2023-12-16 07:54:26 -08:00
committed by GitHub
parent 0aa8d8da5a
commit 0b8d12f547

View File

@@ -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: