Skip to content

Commit

Permalink
ci(deploy): Add AWS deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
433eros committed Jan 29, 2024
1 parent 7337639 commit d457857
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy_backend_to_aws.yml
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 }}

0 comments on commit d457857

Please sign in to comment.