https://prefect.io logo
Title
t

Thibaud

05/19/2023, 5:21 PM
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

Jamie Zieziula

05/19/2023, 5:24 PM
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

Thibaud

05/19/2023, 5:25 PM
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

Jamie Zieziula

05/19/2023, 5:26 PM
What do you mean?
the -sb flag [in this case] is telling Prefect where to load the flow code from at run time
t

Thibaud

05/19/2023, 5:29 PM
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

Jamie Zieziula

05/19/2023, 5:37 PM
i don’t think that should matter - the deployment will look to the
entrypoint
path to find your flow!
😀 1
t

Thibaud

05/19/2023, 5:53 PM
should I run a pip install inside the agent ? Or run commands from a docker container with all dependencies
j

Jamie Zieziula

05/19/2023, 7:07 PM
are you using a custom docker image with your dependencies installed on it?
t

Thibaud

05/19/2023, 7:08 PM
thats what we are trying to do with a docker block yes
j

Jamie Zieziula

05/19/2023, 7:35 PM
yep so if you install your dependencies on the docker image, you won’t need to install anything in the agent