Skip to content

Commit

Permalink
Fix nightly build on CentOS CI (#15813)
Browse files Browse the repository at this point in the history
Signed-off-by: Vitalii Parfonov <[email protected]>
  • Loading branch information
vparfonov authored Jan 24, 2020
1 parent a281bc5 commit 54c0d1b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .ci/cico_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ publishImagesOnQuay() {
rm -r "${LOCAL_ASSEMBLY_DIR}"
fi
cp -r "${BUILD_ASSEMBLY_DIR}" "${LOCAL_ASSEMBLY_DIR}"
docker build -t ${ORGANIZATION}/che-server:${TAG}-centos -f $(pwd)/${image_dir}/Dockerfile.centos $(pwd)/${image_dir}/
docker build -t ${REGISTRY}/${ORGANIZATION}/che-server:${TAG}-centos -f $(pwd)/${image_dir}/Dockerfile.centos $(pwd)/${image_dir}/
fi
if [[ $? -ne 0 ]]; then
echo "ERROR:"
Expand All @@ -165,18 +165,17 @@ publishImagesOnQuay() {
#PUSH IMAGES
for image in ${IMAGES_LIST[@]}
do
docker tag "${image}:${TAG}" "${REGISTRY}/${image}:${TAG}"
echo y | docker push "${REGISTRY}/${image}:${TAG}"
if [[ $2 == "pushLatest" ]]; then
docker tag "${image}:${TAG}" "${REGISTRY}/${image}:latest"
echo y | docker push "${REGISTRY}/${image}:latest"
fi

if [[ ${image} == "${ORGANIZATION}/che-server" ]]; then
docker tag "${image}:${TAG}" "${REGISTRY}/${image}:${TAG}-centos"
docker tag "${REGISTRY}/${image}:${TAG}" "${REGISTRY}/${image}:${TAG}-centos"
echo y | docker push "${REGISTRY}/${ORGANIZATION}/che-server:${TAG}-centos"
if [[ $2 == "pushLatest" ]]; then
docker tag "${image}:${TAG}" "${REGISTRY}/${image}:latest-centos"
docker tag "${REGISTRY}/${image}:${TAG}" "${REGISTRY}/${image}:latest-centos"
echo y | docker push "${REGISTRY}/${ORGANIZATION}/che-server:latest-centos"
fi
fi
Expand Down

0 comments on commit 54c0d1b

Please sign in to comment.