Skip to content

Commit

Permalink
feat(ci): promote images from staging when deploying to prod (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfoo1984 authored Nov 21, 2023
1 parent bb397de commit 3854cbf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ jobs:
run: |
HAPPY_OIDC_ID_TOKEN=${{env.id_token}} happy config set API_URL ${{ vars.API_URL }} --env prod --aws-profile ""
- name: Deploy to production env
uses: chanzuckerberg/github-actions/.github/actions/deploy-happy-stack@main
uses: chanzuckerberg/github-actions/.github/actions/deploy-happy-stack@v1.26.0
with:
tfe-token: ${{ secrets.TFE_TOKEN }}
env: ${{ vars.HAPPY_ENV }}
create-tag: true
image-source-env: ${{ vars.IMAGE_SOURCE_ENV }}
image-source-stack: ${{ secrets.IMAGE_SOURCE_STACK }}
image-source-role-arn: ${{ secrets.IMAGE_SOURCE_ROLE_ARN }}
stack-name: ${{ secrets.HAPPY_STACK_NAME }}
version-lock-file: .happy/version.lock
2 changes: 1 addition & 1 deletion .github/workflows/deploy-sandbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: |
HAPPY_OIDC_ID_TOKEN=${{env.id_token}} happy config set API_URL ${{ vars.API_URL }} --env sandbox --aws-profile ""
- name: Update sandbox
uses: chanzuckerberg/github-actions/.github/actions/deploy-happy-stack@main
uses: chanzuckerberg/github-actions/.github/actions/deploy-happy-stack@v1.26.0
with:
tfe-token: ${{ secrets.TFE_TOKEN }}
env: ${{ vars.HAPPY_ENV }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: |
HAPPY_OIDC_ID_TOKEN=${{env.id_token}} happy config set API_URL ${{ vars.API_URL }} --env staging --aws-profile ""
- name: Deploy to staging env
uses: chanzuckerberg/github-actions/.github/actions/deploy-happy-stack@main
uses: chanzuckerberg/github-actions/.github/actions/deploy-happy-stack@v1.26.0
with:
tfe-token: ${{ secrets.TFE_TOKEN }}
env: ${{ vars.HAPPY_ENV }}
Expand Down
2 changes: 1 addition & 1 deletion .happy/version.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Require": {
"chanzuckerberg/happy": "0.110.1"
"chanzuckerberg/happy": "0.118.2"
}
}

0 comments on commit 3854cbf

Please sign in to comment.