Skip to content

Commit

Permalink
chore(CI): Setup inter-job dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Jul 11, 2024
1 parent 090e193 commit 1756727
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1756727

Please sign in to comment.