Nikolay
09/10/2021, 1:32 PMFilip Lindvall
09/10/2021, 1:53 PMprefect-run:
# Use the official prefect image.
image: prefecthq/prefect:latest
before_script:
- prefect auth login --key "$PREFECT_SERVICE_ACCOUNT_TOKEN"
script:
- prefect run --name "$NAME_OF_FLOW"
I'm not great at Gitlab ci/cd, but something like this should work quite well.Zanie
login
callZanie
--watch
so that CI doesn't finish until the flow does and the exit code will reflect the status of the run then. Without --watch
, it just creates a flow run and exits.Nikolay
09/10/2021, 2:58 PM