From 63f6b4838f9ceeee600cb9cd34c4cb1d3d0fe596 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Fri, 26 May 2023 10:29:31 +0300 Subject: [PATCH 1/2] chore: Only run `deploy_template` after `deploy_image` has been completed. This resolves #7662 --- .github/workflows/dogfood.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/dogfood.yaml b/.github/workflows/dogfood.yaml index 7811ce31183e7..52fe98ada9008 100644 --- a/.github/workflows/dogfood.yaml +++ b/.github/workflows/dogfood.yaml @@ -49,6 +49,8 @@ jobs: cache-from: type=registry,ref=codercom/oss-dogfood:latest cache-to: type=inline deploy_template: + needs: deploy_image + if: ${{ needs.deploy_image.result == 'success' || needs.deploy_image.result == 'skipped' }} runs-on: ubuntu-latest steps: - name: Checkout From a9b1e3955641923a0f4b655bcf4fbfa49b5313a9 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Fri, 26 May 2023 13:41:47 +0300 Subject: [PATCH 2/2] run on success only. --- .github/workflows/dogfood.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/dogfood.yaml b/.github/workflows/dogfood.yaml index 52fe98ada9008..04450ab4dfcfb 100644 --- a/.github/workflows/dogfood.yaml +++ b/.github/workflows/dogfood.yaml @@ -50,7 +50,6 @@ jobs: cache-to: type=inline deploy_template: needs: deploy_image - if: ${{ needs.deploy_image.result == 'success' || needs.deploy_image.result == 'skipped' }} runs-on: ubuntu-latest steps: - name: Checkout