-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(deploy): Add AWS deployment workflow
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: 🚀 Deploy Web Backend to AWS | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
environment: | ||
type: environment | ||
default: 'authoring.lara.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: | ||
name: 🚀 Deploy to '${{ inputs.environment }}' | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: ${{ inputs.environment }} | ||
url: https://${{ inputs.environment }} | ||
steps: | ||
- name: 📥 Checkout project source | ||
uses: actions/checkout@v4 | ||
- name: 🚀 Deploy Rails App | ||
uses: concord-consortium/lara/.github/workflows/actions/deploy-rails-app-to-aws@v2 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ vars.AWS_REGION }} | ||
cf-stack-name: ${{ vars.CF_STACK_NAME }} |