Skip to content

Commit 8279abf

Browse files
committed
improvements
1 parent b4b3738 commit 8279abf

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

scripts/ci/manage-devsandbox-dashboard.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,13 @@ if [[ -n "${CI}${UI_REPO_PATH}" ]] && [[ $(echo ${REPO_NAME} | sed 's/"//g') !=
137137
# workaround since our image is still named sandbox-rhdh-plugin
138138
REPOSITORY_NAME=sandbox-rhdh-plugin
139139
push_image
140+
elif [[ -n "${CI}" && -z "${REPO_NAME}" ]]; then
141+
# Running in CI periodic job (REPO_NAME not set), use latest image
142+
IMAGE_LOC="quay.io/codeready-toolchain/sandbox-rhdh-plugin:latest"
143+
echo "Running in CI periodic job, using latest image: ${IMAGE_LOC}"
140144
elif [[ ${RUNNING_IN_CONTAINER} == "true" || -n "${CI}" ]]; then
141-
# Running inside container, use the already-pushed image
145+
# Running inside container or in CI, use the already pushed image
146+
# workaround since our image is still named sandbox-rhdh-plugin
142147
IMAGE_LOC=quay.io/${QUAY_NAMESPACE}/sandbox-rhdh-plugin:${TAGS}
143148
echo "Running in container, using existing image: ${IMAGE_LOC}"
144149
fi

0 commit comments

Comments
 (0)