Skip to content

chore(worker): new subdomain #3

chore(worker): new subdomain

chore(worker): new subdomain #3

name: Deploy Cloudflare
on:
push:
branches: [master]
paths: ["**/*.tf", ".github/workflows/deploy-cloudflare.yml"]
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
sparse-checkout: "**/*.tf"
sparse-checkout-cone-mode: false
- name: Set up Terraform
uses: hashicorp/setup-terraform@v3
- name: Init
run: terraform init
- name: Plan and deploy
run: terraform apply --auto-approve
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
TF_VAR_cloudflare_zone_id: ${{ vars.CLOUDFLARE_ZONE_ID }}