Skip to content

Commit

Permalink
Add deployment: input to pex deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shalabhc committed Oct 13, 2023
1 parent 06279ed commit 6d846b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions actions/build_deploy_python_executable/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ inputs:
description: 'Python version string, major.minor only, eg "3.8"'
required: false
default: '3.8'
deployment:
required: false
description: "The deployment to push to, defaults to 'prod'. Ignored for pull requests where the branch deployment is used."
default: "prod"
deploy:
description: 'Whether to upload the code files and update the code location'
required: false
Expand Down
3 changes: 2 additions & 1 deletion src/deploy_pex.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def main():
deployment_name = get_branch_deployment_name(project_dir)
else:
print("Going to do a full deployment.", flush=True)
deployment_name = os.getenv("DAGSTER_CLOUD_DEPLOYMENT", "prod")
# INPUT_DEPLOYMENT is automatically set by github to the `deployment:` input value, if provided
deployment_name = os.getenv("INPUT_DEPLOYMENT", "prod")

ubuntu_version = get_runner_ubuntu_version()
print("Running on Ubuntu", ubuntu_version, flush=True)
Expand Down

0 comments on commit 6d846b5

Please sign in to comment.