Skip to content

Commit

Permalink
improved CI workflow (#20)
Browse files Browse the repository at this point in the history
Setup CI with a promotion workflow develop -> staging -> prod
  • Loading branch information
zaro0508 authored Nov 17, 2023
1 parent 0873041 commit da3579d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
sceptre-command: "sceptre launch agoradev/develop --prune --yes"
deploy-agoraprod-common:
if: github.ref == 'refs/heads/main'
needs: [pre-commit, jinja-lint]
needs: [deploy-agoradev]
uses: "./.github/workflows/aws-deploy.yaml"
with:
role-to-assume: "arn:aws:iam::681175625864:role/sagebase-github-oidc-agora-infra-deploy"
Expand All @@ -61,7 +61,7 @@ jobs:
sceptre-command: "sceptre launch agoraprod/staging --prune --yes"
deploy-agoraprod-prod:
if: github.ref == 'refs/heads/main'
needs: [deploy-agoraprod-common]
needs: [deploy-agoraprod-staging]
uses: "./.github/workflows/aws-deploy.yaml"
with:
role-to-assume: "arn:aws:iam::681175625864:role/sagebase-github-oidc-agora-infra-deploy"
Expand Down

0 comments on commit da3579d

Please sign in to comment.