2021-06-24 03:13:00 -05:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
################################################################################
|
2023-11-22 21:49:23 +01:00
|
|
|
## File: install-bicep.sh
|
|
|
|
|
## Desc: Install bicep cli
|
2021-06-24 03:13:00 -05:00
|
|
|
################################################################################
|
|
|
|
|
|
2023-12-29 12:36:27 +01:00
|
|
|
# Source the helpers for use with the script
|
2021-06-24 03:13:00 -05:00
|
|
|
source $HELPER_SCRIPTS/install.sh
|
|
|
|
|
|
|
|
|
|
# Install Bicep CLI
|
2023-12-29 12:36:27 +01:00
|
|
|
download_url=$(resolve_github_release_asset_url "Azure/bicep" "endswith(\"bicep-linux-x64\")" "latest")
|
|
|
|
|
bicep_binary_path=$(download_with_retry "${download_url}")
|
|
|
|
|
|
2021-06-24 03:13:00 -05:00
|
|
|
# Mark it as executable
|
2023-11-29 20:25:29 +01:00
|
|
|
install "$bicep_binary_path" /usr/local/bin/bicep
|
2021-06-24 03:13:00 -05:00
|
|
|
|
2023-11-22 21:49:23 +01:00
|
|
|
invoke_tests "Tools" "Bicep"
|