Skip to content

Release and Deploy Passport #129

Release and Deploy Passport

Release and Deploy Passport #129

name: Release and Deploy Passport
## To use this in a new repo
## 1. Copy this file
## 2. Configure secrets shown below
# PULUMI_ACCESS_TOKEN
# AWS_ACCESS_KEY_ID_PRODUCTION
# AWS_ACCESS_KEY_ID_STAGING
# AWS_SECRET_ACCESS_KEY_PRODUCTION
# AWS_SECRET_ACCESS_KEY_STAGING
# ECR_URL_PRODUCTION
# ECR_URL_STAGING
# ROUTE53_ZONE_ID_PRODUCTION
# ROUTE53_ZONE_ID_STAGING
# IAM_SERVER_SSM_ARN_PRODUCTION
# IAM_SERVER_SSM_ARN_STAGING
## 3. Update input values ("with") below
## 4. Create an environment called "production" and add Required Reviewers
on:
workflow_dispatch:
inputs:
commit:
description: "Leave blank to use current HEAD, or provide an override commit SHA"
type: string
required: false
jobs:
ref:
name: Load Commit Ref
runs-on: ubuntu-latest
steps:
- id: ref
shell: bash
# Default to HEAD of the branch from
# which this workflow was triggered
run: |
echo "refspec=${{ inputs.commit || github.sha }}" >> $GITHUB_OUTPUT
outputs:
refspec: ${{ steps.ref.outputs.refspec }}
deploy_passport:
needs: [ref]
name: Deploy
permissions: write-all
uses: gitcoinco/gh-workflows/.github/workflows/release_and_deploy.yml@main
with:
refspec: ${{ needs.ref.outputs.refspec }}
repo_owner: gitcoinco
repo_name: passport
staging_frontend_branch: staging-app
production_frontend_branch: production-app
staging_domain: staging.passport.gitcoin.co
production_domain: passport-iam.gitcoin.co
ecr_repository: passport
secrets: inherit