Deploy to sandbox env #64
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to sandbox env | |
on: | |
push: | |
branches: | |
- sandbox | |
workflow_dispatch: | |
jobs: | |
deploy-to-sandbox-env: | |
runs-on: [ARM64, self-hosted, Linux] | |
environment: sandbox | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Assume happy-api deployment role | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-region: us-west-2 | |
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} | |
role-duration-seconds: 1200 | |
role-session-name: CzidGraphQLFederationUpdateSandbox | |
- name: Install happy | |
uses: chanzuckerberg/github-actions/.github/actions/install-happy@main | |
- name: Set version info | |
uses: chanzuckerberg/czid-graphql-federation-server/.github/actions/happy-config-set@main | |
with: | |
app_config_name: CZID_GQL_FED_GIT_SHA | |
app_config_value: ${{ github.sha }} | |
happy_env: sandbox | |
- name: Set CZ ID Rails API URL | |
uses: chanzuckerberg/czid-graphql-federation-server/.github/actions/happy-config-set@main | |
with: | |
app_config_name: API_URL | |
app_config_value: ${{ vars.API_URL}} | |
happy_env: sandbox | |
- name: Set CZ ID Entities URL | |
uses: chanzuckerberg/czid-graphql-federation-server/.github/actions/happy-config-set@main | |
with: | |
app_config_name: NEXTGEN_ENTITIES_URL | |
app_config_value: ${{ vars.NEXTGEN_ENTITIES_URL}} | |
happy_env: sandbox | |
- name: Set CZ ID Workflows URL | |
uses: chanzuckerberg/czid-graphql-federation-server/.github/actions/happy-config-set@main | |
with: | |
app_config_name: NEXTGEN_WORKFLOWS_URL | |
app_config_value: ${{ vars.NEXTGEN_WORKFLOWS_URL}} | |
happy_env: sandbox | |
- name: Set allowed CORS origins | |
uses: chanzuckerberg/czid-graphql-federation-server/.github/actions/happy-config-set@main | |
with: | |
app_config_name: ALLOWED_CORS_ORIGINS | |
app_config_value: ${{ vars.ALLOWED_CORS_ORIGINS}} | |
happy_env: sandbox | |
- name: Update sandbox | |
uses: chanzuckerberg/github-actions/.github/actions/[email protected] | |
with: | |
tfe-token: ${{ secrets.TFE_TOKEN }} | |
env: ${{ vars.HAPPY_ENV }} | |
create-tag: true | |
stack-name: ${{ secrets.HAPPY_STACK_NAME }} | |
version-lock-file: .happy/version.lock |