Skip to content

Remove N+1 query from vaccines index #781

Remove N+1 query from vaccines index

Remove N+1 query from vaccines index #781

Workflow file for this run

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