Anthony
12/07/2022, 8:28 PMDocuments/prefect/prefect_env
What do I need to do so that the path doesn't point to my local file system?Ryan Peden
12/07/2022, 8:53 PMAnthony
12/07/2022, 8:54 PMRyan Peden
12/07/2022, 10:30 PMmy-gitlab-storage
, you would would add it to a CLI deployment with the -sb gitlab-repository/my-gitlab-storage
flag.
To add it to a Python deployment, you'd do something like:
from prefect.deployments import Deployment
from prefect_gitlab import GitLab
my_storage = GitLab.load("my-gitlab-storage")
my_deployment = Deployment.build_from_flow(
...other deployment parameters
storage=my_storage
)
Anthony
12/07/2022, 10:35 PMprefect deployment build basic_flow.py:basic_flow --name test-deployment -sb gitlab-repository/gitlab-repo-prefect-test -q default
Ryan Peden
12/07/2022, 10:37 PMAnthony
12/07/2022, 10:37 PMRyan Peden
12/07/2022, 10:38 PM--skip-upload
?Anthony
12/07/2022, 10:40 PMRyan Peden
12/07/2022, 10:51 PMprefect-gitlab
package installed in the environment where your agent is running?Anthony
12/07/2022, 10:52 PMpython basic_flow.py
it runs fine locally.Ryan Peden
12/07/2022, 10:54 PMprefect-gitlab
, then prefect-gitlab
needs to be installed in the environment that runs your deployments (in this case, it sounds like you've got an agent running in K8s)Anthony
12/07/2022, 10:57 PM