feat: Add support for configurable REGISTRY_URL to download Databricks CLI from custom registrie #128
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
This pull request introduces support for specifying a custom
REGISTRY_URL
in the GitHub Action to download the Databricks CLI from either the default GitHub registry or a private/custom registry (e.g., Artifactory or another mirror).Key Changes:
New
registry_url
Input:registry_url
to the GitHub Action.https://github.com
.Example Usage:
Default to GitHub:
registry_url
is passed, the GitHub Action will automatically usehttps://github.com
for downloading the Databricks CLI.Updated Bash Script (
setup_release.sh
):REGISTRY_URL
input to download the Databricks CLI. If theREGISTRY_URL
is not provided, the download will default to GitHub.Backward Compatibility:
registry_url
is specified, the GitHub Action will behave exactly as before, pulling the Databricks CLI directly from GitHub.Why This Change is Important:
Flexibility: This enhancement allows users to download the Databricks CLI from private mirrors or registries, which can be useful in environments where access to external resources like GitHub is restricted.
Default Behavior Intact: The default behavior remains the same, ensuring that users who do not require a custom registry will continue downloading from GitHub without any additional configuration.
Let me know if you'd like any adjustments or if there are specific points to elaborate further!