Hi, is it possible to upload a deployment in a git...
# prefect-getting-started
t
Hi, is it possible to upload a deployment in a github repo ? Is is documented as read-only here https://docs.prefect.io/latest/concepts/filesystems/#github But used just after withthe -sb github/block tag And I have this error, with this block
Is there any other file to modify/run in order to upload the deployment to my github repo ?
A deployment-yaml config, anything ?
j
I think you need to push your flow code to GitHub like you normally would with native git commands (git add/commit/push)
as the docs state - that GitHub file system is read only, so it is unable to upload your flow code for you
t
Ok thanks !
prefect deployment build path/to/flow.py:flow_name --name deployment_name --tag dev -sb github/dev -a I dont understand this command in your docs then
j
What do you mean?
the -sb flag [in this case] is telling Prefect where to load the flow code from at run time
t
Ohh its to run not to upload ok
Last question, it seems that the prefect deployment build creates the yaml file with an absolute path. What will happen to this absolute path when uploaded : the code wont be found ?
j
i don’t think that should matter - the deployment will look to the
entrypoint
path to find your flow!
😀 1
t
should I run a pip install inside the agent ? Or run commands from a docker container with all dependencies
j
are you using a custom docker image with your dependencies installed on it?
t
thats what we are trying to do with a docker block yes
j
yep so if you install your dependencies on the docker image, you won’t need to install anything in the agent