1
0
Files
mstr-tasks/development/deploy-target.yaml
2026-01-26 15:36:52 +01:00

54 lines
1.1 KiB
YAML

# yaml-language-server: $schema=https://git.jesof.ch/public/mstr-schemas/raw/branch/main/mstr-tasks-schema.json
tasks:
- loadVersion:
varName: version
file: .mstr.json
- template:
args:
version: "$(version)"
templates:
- "@(development)/version.yaml"
target: "@(provisioning)/roles/$(name)/vars/version.yaml"
- execute:
dir: "@(provisioning)"
exec: "orchestra"
args:
- "-roles"
- "$(name)"
- execute:
description: "Check health endpoint"
exec: "curl"
args:
- "--retry"
- "10"
- "--silent"
- $(settings.health_url)
when: $(has("settings.health_url"))
- execute:
dir: "@(provisioning)"
exec: git
args:
- add
- "@(provisioning)/roles/$(name)/vars/version.yaml"
- execute:
dir: "@(provisioning)"
exec: git
args:
- commit
- "-m"
- "New $(name) release"
- execute:
dir: "@(provisioning)"
exec: git
args:
- push
- print:
format: "### Application $(name) version $(version) deployed ###"