diff --git a/github/serverless/branch_deployments.yml b/github/serverless/branch_deployments.yml index 6a0f6dcc..cd213180 100644 --- a/github/serverless/branch_deployments.yml +++ b/github/serverless/branch_deployments.yml @@ -11,7 +11,7 @@ env: DAGSTER_CLOUD_URL: ${{ secrets.DAGSTER_CLOUD_URL }} DAGSTER_CLOUD_API_TOKEN: ${{ secrets.DAGSTER_CLOUD_API_TOKEN }} ENABLE_FAST_DEPLOYS: 'true' - PYTHON_VERSION: '3.8' + PYTHON_VERSION: '3.11' DAGSTER_CLOUD_FILE: 'dagster_cloud.yaml' jobs: diff --git a/github/serverless/dbt/branch_deployments.yml b/github/serverless/dbt/branch_deployments.yml index 624b751d..f73c9741 100644 --- a/github/serverless/dbt/branch_deployments.yml +++ b/github/serverless/dbt/branch_deployments.yml @@ -11,7 +11,7 @@ env: DAGSTER_CLOUD_URL: ${{ secrets.DAGSTER_CLOUD_URL }} DAGSTER_CLOUD_API_TOKEN: ${{ secrets.DAGSTER_CLOUD_API_TOKEN }} ENABLE_FAST_DEPLOYS: 'true' - PYTHON_VERSION: '3.8' + PYTHON_VERSION: '3.11' DAGSTER_CLOUD_FILE: 'dagster_cloud.yaml' jobs: diff --git a/github/serverless/dbt/deploy.yml b/github/serverless/dbt/deploy.yml index fafb0d72..ca7c3501 100644 --- a/github/serverless/dbt/deploy.yml +++ b/github/serverless/dbt/deploy.yml @@ -13,7 +13,7 @@ env: DAGSTER_CLOUD_URL: ${{ secrets.DAGSTER_CLOUD_URL }} DAGSTER_CLOUD_API_TOKEN: ${{ secrets.DAGSTER_CLOUD_API_TOKEN }} ENABLE_FAST_DEPLOYS: 'true' - PYTHON_VERSION: '3.8' + PYTHON_VERSION: '3.11' DAGSTER_CLOUD_FILE: 'dagster_cloud.yaml' jobs: diff --git a/github/serverless/deploy.yml b/github/serverless/deploy.yml index ab419167..777a2269 100644 --- a/github/serverless/deploy.yml +++ b/github/serverless/deploy.yml @@ -13,7 +13,7 @@ env: DAGSTER_CLOUD_URL: ${{ secrets.DAGSTER_CLOUD_URL }} DAGSTER_CLOUD_API_TOKEN: ${{ secrets.DAGSTER_CLOUD_API_TOKEN }} ENABLE_FAST_DEPLOYS: 'true' - PYTHON_VERSION: '3.8' + PYTHON_VERSION: '3.11' DAGSTER_CLOUD_FILE: 'dagster_cloud.yaml' jobs: diff --git a/gitlab/dbt/serverless-ci-dbt.yml b/gitlab/dbt/serverless-ci-dbt.yml index 76273008..051ef89a 100644 --- a/gitlab/dbt/serverless-ci-dbt.yml +++ b/gitlab/dbt/serverless-ci-dbt.yml @@ -5,6 +5,7 @@ variables: DAGSTER_DBT_PROJECT_NAME: $DAGSTER_DBT_LOCATION_NAME DAGSTER_DBT_PROJECT_DIR: "${CI_PROJECT_DIR}" DAGSTER_DBT_PACKAGE_DATA_DIR: "${CI_PROJECT_DIR}/$DAGSTER_DBT_PROJECT_NAME/dbt-project" + PYTHON_VERSION: "3.11" deploy-branch: stage: deploy diff --git a/gitlab/hybrid-ci.yml b/gitlab/hybrid-ci.yml index f4ef00c8..0ba628b4 100644 --- a/gitlab/hybrid-ci.yml +++ b/gitlab/hybrid-ci.yml @@ -17,6 +17,8 @@ variables: # Internally used directory name for build state DAGSTER_BUILD_STATEDIR: build-state + + PYTHON_VERSION: "3.11" stages: - setup - build diff --git a/gitlab/serverless-ci.yml b/gitlab/serverless-ci.yml index 2cfaf618..9e87200c 100644 --- a/gitlab/serverless-ci.yml +++ b/gitlab/serverless-ci.yml @@ -2,6 +2,7 @@ variables: DISABLE_FAST_DEPLOYS: DAGSTER_CLOUD_URL: $DAGSTER_CLOUD_URL DAGSTER_CLOUD_API_TOKEN: $DAGSTER_CLOUD_API_TOKEN + PYTHON_VERSION: "3.11" deploy-branch: stage: deploy diff --git a/src/gitlab_action/deploy.py b/src/gitlab_action/deploy.py index 8b869252..6e171c8e 100755 --- a/src/gitlab_action/deploy.py +++ b/src/gitlab_action/deploy.py @@ -19,6 +19,7 @@ def deploy(dagster_cloud_yaml_file, deployment=None): project_url = os.getenv("CI_PROJECT_URL") commit = os.getenv("CI_COMMIT_SHORT_SHA") branch = os.getenv("CI_COMMIT_BRANCH") or os.getenv("CI_COMMIT_REF_NAME") + python_version = os.getenv("PYTHON_VERSION") deps_cache = project + "/" + branch commit_url = project_url + "/commit/" + commit @@ -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}")