Cade Summers
08/19/2024, 5:07 PMMarvin
08/19/2024, 5:08 PMprefect.yaml
file for working with Docker images:
# Example prefect.yaml file for working with Docker images
name: my-docker-project
prefect-version: 2.13.4
# build section allows you to manage and build docker image
build:
- prefect_docker.deployments.steps.build_docker_image:
id: build_image
requires: prefect-docker>=0.3.1
image_name: my-repo/my-image
tag: my-tag
dockerfile: auto
platform: linux/amd64
# pull section allows you to manage if and how docker images are pulled
pull:
- prefect_docker.deployments.steps.pull_docker_image:
requires: prefect-docker>=0.3
image_name: my-repo/my-image
tag: my-tag
# push section allows you to manage if and how this project is uploaded to remote locations
push:
- prefect_docker.deployments.steps.push_docker_image:
requires: prefect-docker>=0.3
image_name: my-repo/my-image
tag: my-tag
### References:
1. Prefect deploy guide
2. Prefect GCP worker guide
This configuration includes build, pull, and push steps for managing Docker images in your Prefect deployment. If you need more details or customization, refer to the links above.