Skip to content

Commit

Permalink
Add DAGSTER_PYTHON_VERSION env for gitlab workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
shalabhc committed Aug 21, 2023
1 parent b38fdd8 commit f08757f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gitlab_action/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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}")
Expand Down

0 comments on commit f08757f

Please sign in to comment.