Skip to content

Copilot (All staging environments) #2023

Copilot (All staging environments)

Copilot (All staging environments) #2023

Workflow file for this run

name: Deploy
run-name: >-
${{ github.event_name == 'workflow_dispatch'
&& format('Copilot ({0})', inputs.environment)
|| 'Copilot (All staging environments)' }}
on:
push:
branches: [main]
workflow_dispatch:
inputs:
environment:
description: "Deployment environment"
required: true
type: choice
options:
- qa
- test
- preview
- training
- production
jobs:
Deploy:
strategy:
fail-fast: false
matrix:
environment: >-
${{ fromJSON(github.event_name == 'workflow_dispatch'
&& format('["{0}"]', inputs.environment)
|| '["qa", "test"]') }}
uses: ./.github/workflows/_deploy-template.yml
with:
environment: ${{ matrix.environment }}
aws-account-id: >-
${{ matrix.environment == 'production'
&& 'arn:aws:iam::820242920762:role/GitHubActionsRole'
|| 'arn:aws:iam::393416225559:role/GitHubActionsRole' }}