From 1756727849a2bfabf9d58a81e95d7b6f6c159f4a Mon Sep 17 00:00:00 2001 From: rajdip-b Date: Thu, 11 Jul 2024 22:14:16 +0530 Subject: [PATCH] chore(CI): Setup inter-job dependency --- .github/workflows/deploy-api.yml | 2 ++ .github/workflows/deploy-platform.yml | 1 + .github/workflows/deploy-web.yml | 1 + 3 files changed, 4 insertions(+) diff --git a/.github/workflows/deploy-api.yml b/.github/workflows/deploy-api.yml index 240f6104..f57fead7 100644 --- a/.github/workflows/deploy-api.yml +++ b/.github/workflows/deploy-api.yml @@ -40,6 +40,7 @@ jobs: echo "name=image::$ECR_REGISTRY/$ECR_REPOSITORY:latest" >> $GITHUB_OUTPUT setup-database: + needs: build name: Setup Database runs-on: ubuntu-latest environment: alpha @@ -65,6 +66,7 @@ jobs: run: pnpm db:deploy-migrations deploy: + needs: [build, setup-database] runs-on: ubuntu-latest environment: alpha name: Deploy API docker image for release diff --git a/.github/workflows/deploy-platform.yml b/.github/workflows/deploy-platform.yml index ca97068e..460d794c 100644 --- a/.github/workflows/deploy-platform.yml +++ b/.github/workflows/deploy-platform.yml @@ -40,6 +40,7 @@ jobs: echo "name=image::$ECR_REGISTRY/$ECR_REPOSITORY:latest" >> $GITHUB_OUTPUT deploy: + needs: build runs-on: ubuntu-latest environment: alpha name: Deploy Platform docker image for release diff --git a/.github/workflows/deploy-web.yml b/.github/workflows/deploy-web.yml index 9603e1e4..61adf9ec 100644 --- a/.github/workflows/deploy-web.yml +++ b/.github/workflows/deploy-web.yml @@ -40,6 +40,7 @@ jobs: echo "name=image::$ECR_REGISTRY/$ECR_REPOSITORY:latest" >> $GITHUB_OUTPUT deploy: + needs: build runs-on: ubuntu-latest environment: alpha name: Deploy Web docker image for release