Howard Cornwell
01/17/2024, 3:15 PMKevin Grismore
01/17/2024, 3:45 PM.deploy
instead of build_from_flow
. There's an example later on in that guide for setting job_variables
on your deployment.
if __name__ == "__main__":
get_repo_info.deploy(
name="my-deployment-never-pull",
work_pool_name="my-docker-pool",
job_variables={"image_pull_policy": "Never"},
image="my-image:my-tag"",
push=False
)
Valid job variables are any of the items in the variables
object in your work pool's template on the advanced tab of the work pool edit page.Howard Cornwell
01/17/2024, 3:46 PMKevin Grismore
01/17/2024, 3:48 PM.deploy
. You don't need to use build_from_flow
or infra blocks because the work pool's template is essentially an overridable ECS Task infra blockHoward Cornwell
01/17/2024, 3:50 PM.deploy
.