38 lines
768 B
YAML
38 lines
768 B
YAML
version: "3"
|
|
|
|
vars:
|
|
SERVICE: "{{.SERVICE}}"
|
|
ENVIRONMENT: "{{.ENVIRONMENT}}"
|
|
|
|
includes:
|
|
terraform:
|
|
dir: "../services/{{.SERVICE}}/{{.ENVIRONMENT}}"
|
|
taskfile: Taskfile_terraform.dist.yml
|
|
internal: true
|
|
synology:
|
|
dir: "../services/{{.SERVICE}}/{{.ENVIRONMENT}}"
|
|
taskfile: Taskfile_synology.dist.yml
|
|
internal: true
|
|
|
|
tasks:
|
|
init:
|
|
cmds:
|
|
- task: terraform:init
|
|
vars:
|
|
TF_STATE_PATH: "{{.ENVIRONMENT}}/{{.SERVICE}}"
|
|
- task: synology:install-ssh-key
|
|
|
|
plan:
|
|
dir: "{{.ENVIRONMENT}}"
|
|
cmds:
|
|
- task: terraform:plan
|
|
vars:
|
|
WORK_DIR: "{{.ENVIRONMENT}}"
|
|
|
|
apply:
|
|
dir: "{{.ENVIRONMENT}}"
|
|
cmds:
|
|
- task: terraform:apply
|
|
vars:
|
|
WORK_DIR: "{{.ENVIRONMENT}}"
|