Improve validation related to reason to not vaccinated #780
This file contains hidden or 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 | |
run-name: ${{ github.event_name == 'workflow_dispatch' && format('Deploy to {0}', inputs.environment) || null }} | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
inputs: | |
environment: | |
description: "Deployment environment" | |
required: true | |
type: choice | |
options: | |
- test | |
- training | |
jobs: | |
copilot: | |
name: AWS Copilot deploy | |
permissions: | |
id-token: write | |
contents: read | |
concurrency: | |
group: ${{ github.ref }}-${{ github.event.inputs.environment }} | |
cancel-in-progress: true | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: arn:aws:iam::393416225559:role/GitHubActionsRole | |
aws-region: eu-west-2 | |
- name: Install and Verify AWS Copilot | |
run: | | |
curl -Lo /tmp/copilot https://github.com/aws/copilot-cli/releases/latest/download/copilot-linux | |
chmod +x /tmp/copilot | |
mv /tmp/copilot /usr/local/bin/copilot | |
copilot --version | |
- name: Deploy the application using AWS Copilot | |
run: | | |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then | |
ENVIRONMENT=${{ github.event.inputs.environment }} | |
else | |
ENVIRONMENT=test | |
fi | |
copilot svc deploy --name webapp --env $ENVIRONMENT |