mirror of
https://github.com/actions/runner-images.git
synced 2025-12-29 13:17:53 +08:00
16 lines
573 B
Bash
16 lines
573 B
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## File: install-bicep.sh
|
|
## Desc: Install bicep cli
|
|
################################################################################
|
|
|
|
# Source the helpers for use with the script
|
|
source $HELPER_SCRIPTS/install.sh
|
|
|
|
# Install Bicep CLI
|
|
download_url=$(resolve_github_release_asset_url "Azure/bicep" "endswith(\"bicep-linux-x64\")" "latest")
|
|
bicep_binary_path=$(download_with_retry "${download_url}")
|
|
|
|
# Mark it as executable
|
|
install "$bicep_binary_path" /usr/local/bin/bicep
|