Skip to content

Commit 3e6ad6a

Browse files
committed
azure-set-vars: add header comments
Explain what the two scripts do. Also add a comment for the AZURE_DEVOPS_EXT_PAT variable, which may seem unused ('az' uses it automatically) Signed-off-by: Adam Cmiel <[email protected]>
1 parent 069dd2f commit 3e6ad6a

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

hack/_azure-set-vars.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
#!/bin/bash
22
set -o errexit -o pipefail
33

4-
: "${AZURE_DEVOPS_EXT_PAT:?}"
4+
# Create a variable group called $AZURE_VARIABLE_GROUP_NAME (if it doesn't exist)
5+
# and set all the variables needed for the RHTAP pipeline.
6+
#
7+
# If you have the Azure CLI (az) installed and don't mind running the commands
8+
# in this script on your machine, you can execute this script directly. Otherwise,
9+
# run this in a container via hack/azure-set-vars.sh
10+
#
11+
# Before running this script, source your .env or .envrc file.
12+
13+
: "${AZURE_DEVOPS_EXT_PAT:?}" # the 'az' commands use this variable automatically
514
: "${AZURE_VARIABLE_GROUP_NAME:?}"
615
: "${AZURE_ORGANIZATION:?}"
716
: "${AZURE_PROJECT:?}"

hack/azure-set-vars.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/bin/bash
22
set -o errexit -o nounset -o pipefail
33

4+
# Run a script in the azure-cli container to set Azure variables.
5+
# See the header in hack/_azure-set-vars.sh for more details.
6+
47
SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
58

69
# Find available versions with

0 commit comments

Comments
 (0)