Skip to content
Snippets Groups Projects
Commit 68f7d636 authored by James Arcus's avatar James Arcus
Browse files

Create initial CI config

parent 560cc36c
Branches
Pipeline #836 passed with stages
in 1 minute and 10 seconds
workflow:
rules:
- changes:
- "*.tf"
- "*.yml"
stages:
- validate
- plan
- apply
validate:
stage:
validate
before_script:
- mkdir -p /services/wheel-runner/data/member-vm-automation
- tofu init
script:
- tofu validate
plan:
stage:
plan
before_script:
- tofu init
script:
- tofu plan -state /services/wheel-runner/data/member-vm-automation/terraform.tfstate -out /services/wheel-runner/data/member-vm-automation/tf-$CI_PIPELINE_IID.plan
apply:
stage:
apply
rules:
- if: '$CI_COMMIT_BRANCH == "main"'
when: manual
before_script:
- tofu init
script:
- tofu apply -state /services/wheel-runner/data/member-vm-automation/terraform.tfstate /services/wheel-runner/data/member-vm-automation/tf-$CI_PIPELINE_IID.plan
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment