Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add base_image support to the serverless_prod_deploy action #193

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion actions/serverless_prod_deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ runs:
with:
target_directory: ${{ fromJson(inputs.location).directory }}
env_vars: ${{ inputs.env_vars }}
base_image: ${{ inputs.base_image }}
base_image: ${{ inputs.base_image || fromJson(inputs.location).base_image }}

- name: generate short github sha
shell: bash
Expand Down
3 changes: 2 additions & 1 deletion src/parse_workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ def parse_workspace(dagster_cloud_file):
"name": location["location_name"],
"directory": location.get("build", {"directory": "."}).get("directory"),
"build_folder": location.get("build", {"directory": "."}).get("directory"),
"registry": location.get("build", {"directory": "."}).get("registry"),
"registry": location.get("build", {}).get("registry"),
"base_image": location.get("build", {}).get("base_image"),
"location_file": str(workspace),
}
for location in workspace_contents_yaml["locations"]
Expand Down
Loading