Added CI step to trigger canary build

refs 84bfbae282

- if Admin is pushed to after Ghost, the canary build won't contain
  Admin changes, so we need to trigger another canary build
- this commit adds a final step to the CI flow that will trigger the
  Ghost canary build if all steps were successful
This commit is contained in:
Daniel Lockyer 2021-06-01 17:11:51 +01:00
parent 625581be73
commit 0a88346261
No known key found for this signature in database
GPG Key ID: D21186F0B47295AD
1 changed files with 13 additions and 0 deletions

View File

@ -72,3 +72,16 @@ jobs:
status: ${{ job.status }}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
canary:
runs-on: ubuntu-18.04
needs: [lint, test, prod-build]
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
name: Canary
steps:
- name: Invoke Canary Build
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Canary Build
repo: TryGhost/Ghost
token: ${{ secrets.WORKFLOW_TOKEN }}