Skip to content

Merge pull request #78 from the-hideout/general-updates #15

Merge pull request #78 from the-hideout/general-updates

Merge pull request #78 from the-hideout/general-updates #15

Workflow file for this run

name: deploy
on:
push:
branches:
- main
permissions:
contents: read
env:
WORKING_DIR: "terraform/"
jobs:
deploy:
if: github.event_name == 'push'
environment: production
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ env.WORKING_DIR }}
steps:
- name: checkout
uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@633666f66e0061ca3b725c73b2ec20cd13a8fdd1 # [email protected]
with:
terraform_version: 1.1.7
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
- name: Terraform init
run: terraform init
- name: Terraform apply
env:
TF_VAR_CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
run: terraform apply -auto-approve