Skip to content

Commit

Permalink
Adding prod deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
manasaV3 committed Oct 16, 2023
1 parent ef99fb8 commit e6d24f3
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/prod-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
on:
schedule:
- cron: "30 10 * * TUE"

permissions:
id-token: write
contents: read

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
#TODO: Add frontend validation and release notes publishing before triggering release

deploy-to-prod:
name: deploy prod branch
runs-on: ubuntu-latest
environment: prod
if: github.repository == 'chanzuckerberg/cryoet-data-portal'
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
mask-aws-account-id: true
aws-region: ${{ secrets.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
role-duration-seconds: 1200
- name: Login to ECR
uses: docker/login-action@v2
with:
registry: ${{ secrets.ECR_REPO }}
- name: Create or update stack
uses: chanzuckerberg/github-actions/.github/actions/[email protected]
env:
# Force using BuildKit instead of normal Docker, required so that metadata
# is written/read to allow us to use layers of previous builds as cache.
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
DOCKER_REPO: ${{ secrets.ECR_REPO }}/
ENV: prod
with:
stack-name: prod
create-tag: true
tag: ${{ env.STACK_NAME }}
tfe-token: ${{ secrets.TFE_TOKEN }}
working-directory: ./frontend
env: prod
operation: create-or-update

0 comments on commit e6d24f3

Please sign in to comment.