Skip to content

Commit be0cf97

Browse files
committed
feat: Add --latest flag to run.sh and pass to deploy.sh
1 parent ab4ef10 commit be0cf97

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

nightly_tests/run.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ VENUE_NAME=""
77
MC_VERSION="latest"
88
DEPLOYMENT_START_TIME=$(date +%s)
99
MC_SHA=""
10+
LATEST="false"
1011
CONFIG_FILE="marketplace_config.yaml" # Set default config file
1112
# Function to display usage instructions
1213
usage() {
13-
echo "Usage: $0 --destroy <true|false> --run-tests <true|false> --project-name <PROJECT_NAME> --venue-name <VENUE_NAME> [--mc-version <MC_VERSION>] [--mc-sha <MC_SHA>] [--config-file <CONFIG_FILE>]"
14+
echo "Usage: $0 --destroy <true|false> --run-tests <true|false> --project-name <PROJECT_NAME> --venue-name <VENUE_NAME> [--mc-version <MC_VERSION>] [--mc-sha <MC_SHA>] [--config-file <CONFIG_FILE>] [--latest]"
1415
exit 1
1516
}
1617

@@ -67,6 +68,10 @@ while [[ $# -gt 0 ]]; do
6768
MC_SHA="$2"
6869
shift 2
6970
;;
71+
--latest)
72+
LATEST="true"
73+
shift 1
74+
;;
7075
*)
7176
echo "Invalid option: $1" >&2
7277
exit 1
@@ -214,7 +219,7 @@ git checkout ${GH_BRANCH}
214219
#
215220
# Deploy the Management Console using CloudFormation
216221
#
217-
bash deploy.sh --stack-name "${STACK_NAME}" --project-name "${PROJECT_NAME}" --venue-name "${VENUE_NAME}" --mc-version "${MC_VERSION}" --config-file "$CONFIG_FILE" --mc-sha "$MC_SHA"
222+
bash deploy.sh --stack-name "${STACK_NAME}" --project-name "${PROJECT_NAME}" --venue-name "${VENUE_NAME}" --mc-version "${MC_VERSION}" --config-file "$CONFIG_FILE" --mc-sha "$MC_SHA" --latest "${LATEST}"
218223

219224
echo "Deploying Management Console..." >> nightly_output.txt
220225
echo "Deploying Management Console..."

0 commit comments

Comments
 (0)