Deployer
General
The deployer serves to create deployments from Gitlab Repos without having to use the command line. It is a prefect flow that can be found in the python file common/deployer.py.
The deployer takes all necessary information (Git repo, branch, secret credential block) out of the YAML file.
IMPORTANT: Due to a bug in prefect gitlab, the deployer currently uses its own secret credentials block from the harvesting repo. Some modifications would be necessary to allow creating deployments from other repos. Please talk to @a.geissner if necessary.
Workflow
- Create your usual deployment YAML file
- Copy this file a location that is mounted in the central prefect system
- default: use the W: (/mnt/wdm) drive with the subfolder "W:/wdm-test/deployment/yaml" (/mnt/wdm/deployment/yaml)
- you can use other mounted volumes if necessary
- Open the deployer deployment and start a run
- Enter the name of the YAML file as the single parameter, e.g. "test.yaml"
- note: if the file is outside the default folder, you need to give the full path according to the folder structure of the prefect system
- Start the run