From 40168b1d1434ff9a486b11feb88824a395f77f01 Mon Sep 17 00:00:00 2001 From: Aden <115961721+433eros@users.noreply.github.com> Date: Mon, 5 Feb 2024 19:13:48 +0000 Subject: [PATCH] ci(deploy): Add AWS deployment workflow (GH-1237) --- .github/workflows/deploy_backend_to_aws.yml | 30 +++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/deploy_backend_to_aws.yml diff --git a/.github/workflows/deploy_backend_to_aws.yml b/.github/workflows/deploy_backend_to_aws.yml new file mode 100644 index 000000000..997938f1c --- /dev/null +++ b/.github/workflows/deploy_backend_to_aws.yml @@ -0,0 +1,30 @@ +name: 🚀 Deploy Web Backend to AWS + +on: + workflow_dispatch: + inputs: + environment: + type: environment + default: 'learn.portal.staging.concord.org' + description: CloudFormation stack to deploy to + required: true + version: + default: '' + type: string + description: >- + Application version to deploy (defaults to latest pre-release/release version depending on if stack is a + staging or production environment) + +env: + CONTAINER_IMAGE: ghcr.io/${{ github.repository }} + # To use GitHub CLI in a GitHub Actions workflow, set the GH_TOKEN environment variable. + GH_TOKEN: ${{ github.token }} + +jobs: + deploy: + uses: ${{ github.repository_owner }}/lara/.github/workflows/deploy_backend_to_aws.yml@v2 + with: + environment: ${{ inputs.environment }} + version: ${{ inputs.version }} + docker-image-template-key-prefix: Portal + secrets: inherit