Resolve "automatic deplyoment when tag is set"
Closes #106 (closed)
see also https://git.ufz.de/rdm/ansible/-/merge_requests/409
we want to deploy on prod by setting tags on tsm-orchestration
as soon as a tag is set, a webhook to a prod deployment pipeline trigger is sent. The tag name/ref is passed into this pipeline as an environment variable ($REF).
In the pipeline, user tsm-orchestration logs into tsm.ufz.de using an ssh-key, executing this script with the tag name passed as an argument.
The script then checks whether a file releases/${TAG}.env exists and if it does, executes docker compose with this file as a second --env-file.
Edited by Joost Hemmen