https://prefect.io logo
i

Iain Dillingham

10/08/2020, 2:18 PM
Hello #prefect-community 👋 Could anyone point to any continuous integration documentation/best practices for Prefect? We have a setup where we're using GitLab runners inside Kubernetes. We'd like to push to master and then have these register the flows/build the Docker storage. However, we don't want to run these in privileged mode. Thanks in advance!
👋 2
d

Dylan

10/08/2020, 3:35 PM
Hi @Iain Dillingham! We don’t have documented best practices just yet. However, this is something we’re looking to write down. For the moment, let me point you toward: https://docs.prefect.io/api/latest/cli/register.html
As long as Prefect is installed on an image, you should be able to use a tenant token and the Prefect CLI to register a flow in CI 👍
i

Iain Dillingham

10/08/2020, 3:46 PM
Thanks @Dylan! I'll look into both. Much appreciated.
😄 1
a

Adam

10/15/2020, 7:58 PM
Hi @Iain Dillingham, this is how we’re doing it - you might find it useful: https://gist.github.com/mousetree/8e58096ae3ad742407cd4042597984d6
i

Iain Dillingham

10/16/2020, 8:19 AM
Thank you @Adam 👍