mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 03:27:05 +00:00
19 lines
744 B
Bash
19 lines
744 B
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## File: install-azure-devops-cli.sh
|
|
## Desc: Install Azure DevOps CLI (az devops)
|
|
################################################################################
|
|
|
|
# Source the helpers for use with the script
|
|
source $HELPER_SCRIPTS/etc-environment.sh
|
|
|
|
# AZURE_EXTENSION_DIR shell variable defines where modules are installed
|
|
# https://docs.microsoft.com/en-us/cli/azure/azure-cli-extensions-overview
|
|
export AZURE_EXTENSION_DIR=/opt/az/azcliextensions
|
|
set_etc_environment_variable "AZURE_EXTENSION_DIR" "${AZURE_EXTENSION_DIR}"
|
|
|
|
# install azure devops Cli extension
|
|
az extension add -n azure-devops
|
|
|
|
invoke_tests "CLI.Tools" "Azure DevOps CLI"
|