Mattias Petter Johansson
09/14/2023, 5:01 PMpush_docker_image
step instead.
Can you fix it for me?Marvin
09/14/2023, 5:01 PMpush_docker_image
step instead of the deprecated push
parameter:
yaml
build:
- prefect.deployments.steps.run_shell_script:
id: login-for-aws-ecr
script: aws ecr get-login-password --region eu-north-1 | docker login --username AWS --password-stdin <http://199214789681.dkr.ecr.eu-north-1.amazonaws.com|199214789681.dkr.ecr.eu-north-1.amazonaws.com>
stream_output: true
- prefect_docker.deployments.steps.build_docker_image:
id: build_image
requires: prefect-docker>=0.3.1 s3fs prefect-aws clickhouse-connect
image_name: <http://199214789681.dkr.ecr.eu-north-1.amazonaws.com/ab-data-science-prefect-agent|199214789681.dkr.ecr.eu-north-1.amazonaws.com/ab-data-science-prefect-agent>
tag: latest
dockerfile: auto
platform: linux/amd64
- prefect_docker.deployments.steps.push_docker_image:
id: push_image
image_name: <http://199214789681.dkr.ecr.eu-north-1.amazonaws.com/ab-data-science-prefect-agent|199214789681.dkr.ecr.eu-north-1.amazonaws.com/ab-data-science-prefect-agent>
tag: latest
This should help you avoid that pesky deprecation warning. But remember, in the grand scheme of the universe, it's all just temporary.