generated from terraform-ibm-modules/terraform-ibm-module-template
-
Notifications
You must be signed in to change notification settings - Fork 15
feat: add support for install deps #867
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
Merged
Merged
Changes from 30 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
e881082
feat: add support for install deps
Aashiq-J 9e40a6f
test
Aashiq-J 733a0a7
add variables
Aashiq-J 647d147
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J ce8cf9e
Merge branch 'main' into install-deps
Aashiq-J c94e876
update test
Aashiq-J b0c4803
Merge branch 'main' into install-deps
Aashiq-J c8f9b34
fix test
Aashiq-J 6d4f942
udpate submodule
Aashiq-J ba81ae2
update readme
Aashiq-J 612138b
update test
Aashiq-J 9b40676
update script
Aashiq-J bb310b0
update test
Aashiq-J f577343
review changes
Aashiq-J febc4c3
fix
Aashiq-J 05221ac
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J 54d5a4a
update path
Aashiq-J 072276b
test
Aashiq-J 94438e6
test
Aashiq-J 6970512
test
Aashiq-J f7a4f4c
test
Aashiq-J 68d9001
update
Aashiq-J f859afd
Merge branch 'main' into install-deps
Aashiq-J 0ca3be5
formatting
Aashiq-J a5bffb0
update readme
Aashiq-J 9b8e3b6
add triggers
Aashiq-J b2700c1
review changes
Aashiq-J 9617423
SKIP UPGRADE TEST
Aashiq-J 16cd543
review change
Aashiq-J 55efa37
update path
Aashiq-J d8ad15a
test kube-audit
Aashiq-J 5cf6740
test path kube-audit
Aashiq-J c04417a
move script
Aashiq-J 5cca92d
revert kube-audit changes
Aashiq-J 02912da
remove data block
Aashiq-J 546c18a
Merge branch 'main' into install-deps
Aashiq-J File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -o errexit | ||
| set -o pipefail | ||
|
|
||
| DIRECTORY=${1:-"/tmp"} | ||
| # renovate: datasource=github-tags depName=terraform-ibm-modules/common-bash-library | ||
| TAG=v0.2.0 | ||
|
|
||
| echo "Downloading common-bash-library version ${TAG}." | ||
|
|
||
| # download common-bash-library | ||
| curl --silent \ | ||
| --connect-timeout 5 \ | ||
| --max-time 10 \ | ||
| --retry 3 \ | ||
| --retry-delay 2 \ | ||
| --retry-connrefused \ | ||
| --fail \ | ||
| --show-error \ | ||
| --location \ | ||
| --output "${DIRECTORY}/common-bash.tar.gz" \ | ||
| "https://github.com/terraform-ibm-modules/common-bash-library/archive/refs/tags/$TAG.tar.gz" | ||
|
|
||
| mkdir -p "${DIRECTORY}/common-bash-library" | ||
| tar -xzf "${DIRECTORY}/common-bash.tar.gz" --strip-components=1 -C "${DIRECTORY}/common-bash-library" | ||
| rm -f "${DIRECTORY}/common-bash.tar.gz" | ||
|
|
||
| # TThe file doesn’t exist at the time shellcheck runs, so this check is skipped. | ||
Aashiq-J marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| # shellcheck disable=SC1091 | ||
| source "${DIRECTORY}/common-bash-library/common/common.sh" | ||
|
|
||
| echo "Installing jq." | ||
| install_jq "latest" "${DIRECTORY}" "true" | ||
| echo "Installing kubectl." | ||
| install_kubectl "latest" "${DIRECTORY}" "true" | ||
|
|
||
| rm -rf "${DIRECTORY}/common-bash-library" | ||
|
|
||
| echo "Installation complete successfully" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.