Anthony12/07/2022, 8:28 PM
What do I need to do so that the path doesn't point to my local file system?
Ryan Peden12/07/2022, 8:53 PM
Anthony12/07/2022, 8:54 PM
Ryan Peden12/07/2022, 10:30 PM
, you would would add it to a CLI deployment with the
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 )
Anthony12/07/2022, 10:35 PM
prefect deployment build basic_flow.py:basic_flow --name test-deployment -sb gitlab-repository/gitlab-repo-prefect-test -q default
Ryan Peden12/07/2022, 10:37 PM
Anthony12/07/2022, 10:37 PM
Ryan Peden12/07/2022, 10:38 PM
Anthony12/07/2022, 10:40 PM
Ryan Peden12/07/2022, 10:51 PM
package installed in the environment where your agent is running?
Anthony12/07/2022, 10:52 PM
it runs fine locally.
Ryan Peden12/07/2022, 10:54 PM
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)
Anthony12/07/2022, 10:57 PM