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}")