From a0eb26e18ce5454fe72e6335eb94b04595407629 Mon Sep 17 00:00:00 2001 From: Will Norris Date: Mon, 12 Dec 2022 22:47:30 -0800 Subject: [PATCH] .github: run deploy workflow after successful docker push Otherwise, it's very likely that the deploy would complete before the new docker push, so we'd be redeploying an old image. --- .github/workflows/deploy.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d0ea50b..1455181 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,8 +1,9 @@ name: deploy on: - push: - branches: - - "main" + workflow_run: + workflows: [Docker] + types: [completed] + branches: [main] concurrency: group: production @@ -11,6 +12,7 @@ concurrency: jobs: deploy: runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} environment: production steps: - uses: actions/checkout@v3