first commit
This commit is contained in:
53
development/deploy-target.yaml
Normal file
53
development/deploy-target.yaml
Normal file
@@ -0,0 +1,53 @@
|
||||
# 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 ###"
|
||||
Reference in New Issue
Block a user