Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Merge pull request #36 from imyourmanzi/set-up-staging-environment #2

Merge pull request #36 from imyourmanzi/set-up-staging-environment

Merge pull request #36 from imyourmanzi/set-up-staging-environment #2

name: Production
concurrency: production
on:
push:
branches:
- main
paths:
- 'infrastructure/**'
- '.github/workflows/main-1-deploy-infrastructure.yml'
- '.firebaserc'
- 'firebase.json'
jobs:
infrastructure:
name: Deploy Infrastructure
runs-on: ubuntu-latest
environment: production
defaults:
run:
working-directory: infrastructure
steps:
- uses: actions/checkout@v3
- uses: hashicorp/setup-terraform@v2
with:
cli_config_credentials_hostname: 'app.terraform.io'
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
terraform_version: 1.4
terraform_wrapper: false
- run: terraform init
- run: terraform apply -auto-approve