fixup! Chore: CRW-4043 Remove endpoint-watcher from che-server.

pull/573/head
Igor 2023-10-02 15:59:50 +03:00 committed by ivinokur
parent 92c5ca2426
commit baf7ff9372
1 changed files with 19 additions and 30 deletions

View File

@ -11,9 +11,7 @@ DOCKER_FILES_LOCATIONS=(
che-server/dockerfiles/che che-server/dockerfiles/che
) )
IMAGES_LIST=( IMAGE="quay.io/eclipse/che-server"
quay.io/eclipse/che-server
)
sed_in_place() { sed_in_place() {
SHORT_UNAME=$(uname -s) SHORT_UNAME=$(uname -s)
@ -298,39 +296,30 @@ buildImages() {
fi fi
# BUILD IMAGES # BUILD IMAGES
for image_dir in ${DOCKER_FILES_LOCATIONS[@]} bash "$(pwd)/build/build.sh" --tag:${TAG}
do if [[ $? -ne 0 ]]; then
bash "$(pwd)/${image_dir}/build.sh" --tag:${TAG} echo "ERROR:"
if [[ $? -ne 0 ]]; then echo "build of che-server image is failed!"
echo "ERROR:" exit 1
echo "build of '${image_dir}' image is failed!" fi
exit 1
fi
done
} }
tagLatestImages() { tagLatestImages() {
for image in ${IMAGES_LIST[@]} echo y | docker tag "${IMAGE}:$1" "${image}:latest"
do if [[ $? -ne 0 ]]; then
echo y | docker tag "${image}:$1" "${image}:latest" die_with "docker tag of '${image}' image is failed!"
if [[ $? -ne 0 ]]; then fi
die_with "docker tag of '${image}' image is failed!"
fi
done
} }
pushImagesOnQuay() { pushImagesOnQuay() {
#PUSH IMAGES #PUSH THE IMAGE
for image in ${IMAGES_LIST[@]} echo y | docker push "${IMAGE}:$1"
do if [[ $2 == "pushLatest" ]]; then
echo y | docker push "${image}:$1" echo y | docker push "${image}:latest"
if [[ $2 == "pushLatest" ]]; then fi
echo y | docker push "${image}:latest" if [[ $? -ne 0 ]]; then
fi die_with "docker push of '${image}' image is failed!"
if [[ $? -ne 0 ]]; then fi
die_with "docker push of '${image}' image is failed!"
fi
done
} }
bumpVersions() { bumpVersions() {