Cormac
01/19/2024, 9:11 AM# build section allows you to manage and build docker images
build:
- prefect_docker.deployments.steps.build_docker_image:
id: <DEV NAME>
requires: prefect-docker>=0.4.0
image_name: "<AWS ECR>/<DEV NAME>"
tag: latest
dockerfile: <DOCKERFILE>
- prefect_docker.deployments.steps.build_docker_image:
id: <PRD NAME>
requires: prefect-docker>=0.4.0
image_name: "<AWS ECR>/<PRD NAME>"
tag: latest
dockerfile: <DOCKERFILE>
# 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.4.0
image_name: '{{ <DEV NAME>.image_name }}'
tag: '{{ <DEV NAME>.tag }}'
- prefect_docker.deployments.steps.push_docker_image:
requires: prefect-docker>=0.4.0
image_name: '{{ <PRD NAME>.image_name }}'
tag: '{{ <PRD NAME>.tag }}'
# the deployments section allows you to provide configuration for deploying flows
deployments:
...
and when I try doing a build it is attempting to push to the dev environment
What am I doing wrong?Cormac
01/22/2024, 11:55 AM