Workflow config file is invalid. Please check your config file: yaml: line 4: did not find expected '-' indicator
Luke Tainton c1358cf16c
Some checks failed
CI / ci (pull_request) Failing after 1m8s
Add OpenTofu config files
2025-05-10 23:25:59 +01:00

38 lines
757 B
YAML

name: Deploy
on:
push:
branches:
- main
paths:
- tf/**
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4.2.2
- name: Setup OpenTofu
uses: opentofu/setup-opentofu@v1
- name: OpenTofu init
id: init
run: tofu -chdir=tf init
- name: OpenTofu validate
id: validate
run: tofu -chdir=tf validate -no-color
- name: OpenTofu refresh
id: validate
run: tofu -chdir=tf refresh
- name: OpenTofu plan
id: plan
run: tofu -chdir=tf plan -no-color -out /tmp/plan.tfplan
- name: OpenTofu apply
id: apply
run: tofu -chdir=tf apply /tmp/plan.tfplan