WebApp - Actualizo configuración de Terraform para que use bucket exi… #24
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
name: Build and release React app | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- webapp/**/* | |
- .github/workflows/webApp.yml | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
cd webapp | |
yarn install | |
- name: Build project | |
run: | | |
cd webapp | |
yarn build | |
- name: Deploy Infrastructure With Terraform | |
run: | | |
terraform init | |
terraform apply -auto-approve | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |