Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/usr/bin/env bash

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

ENVCODE=$ENVCODE
LOCATION=$LOCATION
PIPELINE_NAME=$PIPELINE_NAME
ENVTAG=$ENVTAG


set -x

if [[ -z "$ENVCODE" ]]
then
echo "Environment Code value not supplied"
exit 1
fi

if [[ -z "$LOCATION" ]]
then
echo "Location value not supplied"
exit 1
fi

echo "Performing bicep template deployment"
if [[ -z "$ENVTAG" ]]
then
./deploy/install.sh "$ENVCODE" "$LOCATION"
else
./deploy/install.sh "$ENVCODE" "$LOCATION" "$ENVTAG"
fi

echo "Performing configuration"
./deploy/configure.sh "$ENVCODE"

if [[ -z "$PIPELINE_NAME" ]]
then
echo "Skipping pipeline packaging"
else
echo "Performing pipeline packaging"
./deploy/package.sh "$ENVCODE" "$PIPELINE_NAME"
fi

set +x