Python
Semaphore can run Python scripts directly. To do this, create a Python task template.
Creating a Python template
- Go to Task Templates section and click the New Template button.
- Select Python as the app type.
- Configure the template:
| Field | Description |
|---|---|
| Name | A descriptive name for the template |
| Repository | Repository containing your .py script |
| Playbook / Script | Relative path to the script, e.g. scripts/deploy.py |
| Variable Groups | Variable groups whose values are injected as environment variables |
- Click Create.
- Click Run to execute the template.