Skip to content

Commit

Permalink
Merge pull request #98 from CSSE6400/86
Browse files Browse the repository at this point in the history
reployment workflow
  • Loading branch information
86LAK authored May 23, 2024
2 parents 5721043 + 38ca437 commit fccfe3a
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/redeployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Manual AWS Redeployment

on:
workflow_dispatch:
inputs:
awsCredentials:
description: 'AWS Credentials'
required: true
environmentVariables:
description: 'Environment Variables'
required: true


jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- uses: levibostian/action-hide-sensitive-inputs@v1
- name: Create .env.local
run: |
cd frontend
touch .env.local
cd ..
- name: Deploy to AWS
run: |
eval "${{ github.event.inputs.awsCredentials }}"
eval "${{ github.event.inputs.environmentVariables }}"
terraform init
terraform destroy -auto-approve
terraform apply -auto-approve

0 comments on commit fccfe3a

Please sign in to comment.