Does anyone have experience passing arugments to D...
# ask-community
m
Does anyone have experience passing arugments to Docker build in the prefect.yaml? (Prefect version 3). I read this in the documentation: • environment variables: you can also reference environment variables with the special syntax
{{ $MY_ENV_VAR }}
. This is especially useful for referencing environment variables that are set at runtime. I would expect this to work but seems like it doesn't.
Copy code
name: prefect3
prefect-version: 3.0.3

build:
- prefect_docker.deployments.steps.build_docker_image:
    requires: prefect-docker>=0.6.1
    image_name: <my_image_name>
    tag: hello_world
    dockerfile: Dockerfile
    buildargs: 
      PLATFORM: "{{ $PLATFORM }}"