<@ULVA73B9P> I am trying to set up the proper pull...
# ask-marvin
c
@Marvin I am trying to set up the proper pull steps in a prefect.yaml file working with docker images. Can you give me an example of how the pull steps in the prefect.yaml file are supposed to look like?
m
Here's an example of how you can set up the pull steps in a
prefect.yaml
file for working with Docker images:
Copy code
# 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.