Harry Hause
01/31/2023, 9:03 PMdeployment build
work with an ecs-task infra block.
This looks related but only looks like it pertains to the docker-container infra block. Otherwise we can manually create the deployments for now.
We are following a similar pipeline to this one: https://github.com/anna-geller/dataflow-ops/blob/main/.github/workflows/ecs_prefect_agent.ymlAnna Geller
01/31/2023, 10:36 PMTimo Vink
01/31/2023, 11:44 PMdocker run --rm -i [imagewejustbuilt] python3 deploy.py
.
Where deploy.py
is some script that imports the flow and calls Deployment.build_from_flow
.Harry Hause
02/01/2023, 3:34 PMprefect deployment build -n flow_123 -q dev -ib ecs-task/dev -a flows/my_flow.py:my_flow --skip-upload
) from the CI/CD altogether. My thinking was:
1. Developer adds new flow, runs commands to create deployments on their local machines
2. From that point on, the docker image is built as part of cd and the infra blocks are updated to point to new image versions
Is this a valid approach in our case? It seems similar to the CI/CD for just a docker image https://github.com/anna-geller/prefect-docker-deployment/blob/main/.github/workflows/docker_image.yaml since we aren’t uploading anything to S3.
Thank you both for your responses!Christopher Boyd
02/02/2023, 2:04 PMHarry Hause
02/02/2023, 3:28 PM