From f08757f30ec1b38004d1c6fdb5e54530acc18024 Mon Sep 17 00:00:00 2001 From: Shalabh Chaturvedi Date: Mon, 21 Aug 2023 09:55:00 -0700 Subject: [PATCH] Add DAGSTER_PYTHON_VERSION env for gitlab workflows --- src/gitlab_action/deploy.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gitlab_action/deploy.py b/src/gitlab_action/deploy.py index 8b869252..21ff212b 100755 --- a/src/gitlab_action/deploy.py +++ b/src/gitlab_action/deploy.py @@ -9,6 +9,7 @@ def deploy(dagster_cloud_yaml_file, deployment=None): url = os.environ["DAGSTER_CLOUD_URL"] + python_version = os.getenv("DAGSTER_PYTHON_VERSION", "3.8") if not os.getenv("SERVERLESS_BASE_IMAGE_PREFIX"): base_image_prefix = "657821118200.dkr.ecr.us-west-2.amazonaws.com/dagster-cloud-serverless-base-" if ".dogfood." in url: @@ -39,6 +40,7 @@ def deploy(dagster_cloud_yaml_file, deployment=None): f"--deps-cache-to={deps_cache}", f"--commit-hash={commit}", f"--git-url={commit_url}", + f"--python-version={python_version}", ] if deployment: command_args.append(f"--url={url}/{deployment}")