Skip to content

Commit

Permalink
Change container tags from -rhel8 to rhel9
Browse files Browse the repository at this point in the history
  • Loading branch information
SDawley committed Dec 3, 2024
1 parent 29fa69a commit 9deaabb
Show file tree
Hide file tree
Showing 17 changed files with 52 additions and 52 deletions.
2 changes: 1 addition & 1 deletion .devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ commands:
mkdir output;
BUILDER=podman SKIP_TEST=true SKIP_FORMAT=true SKIP_LINT=true NODE_BUILD_OPTIONS="-max-old-space-size=1024" ./build.sh &&
export IMAGE=image-registry.openshift-image-registry.svc:5000/$(kubectl get sa default -o json | jq -r '.metadata.namespace')/che-plugin-registry &&
podman tag quay.io/devspaces/pluginregistry-rhel8:next ${IMAGE} &&
podman tag quay.io/devspaces/pluginregistry-rhel9:next ${IMAGE} &&
podman login --tls-verify=false -u $(oc whoami | tr -d :) -p $(oc whoami -t) image-registry.openshift-image-registry.svc:5000 &&
podman push --tls-verify=false "${IMAGE}"
- id: configure-custom-plugin-registry
Expand Down
2 changes: 1 addition & 1 deletion dependencies/che-plugin-registry/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ if [ "${SKIP_OCI_IMAGE}" != "true" ]; then
prepareOpenvsxPackagingAsset

echo "Build with $BUILDER $BUILD_COMMAND"
IMAGE="${REGISTRY}/${ORGANIZATION}/pluginregistry-rhel8:${TAG}"
IMAGE="${REGISTRY}/${ORGANIZATION}/pluginregistry-rhel9:${TAG}"
# Copy to root directory to behave as if in Brew or devspaces-images
cp "${DOCKERFILE}" ./builder.Dockerfile
${BUILDER} ${BUILD_COMMAND} --progress=plain -t "${IMAGE}" -f ./builder.Dockerfile .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ objects:
START_OPENVSX: ${START_OPENVSX}
parameters:
- name: IMAGE
value: registry.redhat.io/devspaces/pluginregistry-rhel8
value: registry.redhat.io/devspaces/pluginregistry-rhel9
displayName: Red Hat OpenShift Dev Spaces plugin registry image
description: Red Hat OpenShift Dev Spaces plugin registry container image. Defaults
to registry.redhat.io/devspaces/pluginregistry-rhel8
to registry.redhat.io/devspaces/pluginregistry-rhel9
- name: IMAGE_TAG
value: '3.18'
displayName: Red Hat OpenShift Dev Spaces plugin registry version
Expand Down
6 changes: 3 additions & 3 deletions product/buildInBrewCopyToQuay.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# $➔ for d in $(ls -1 -d operator-*); do cd $d; { ../buildInBrewCopyToQuay.sh $d; }; cd ..; done

# TODO should we invoke this and commit changes first?
# /path/to/product/getLatestRPM.sh -s "$(pwd)" -r openshift-clients-4 -u https://rhsm-pulp.corp.redhat.com/content/dist/layered/rhel8/basearch/rhocp/4.7 -a "x86_64 s390x ppc64le"
# /path/to/product/getLatestRPM.sh -s "$(pwd)" -r helm-3 -u https://rhsm-pulp.corp.redhat.com/content/dist/layered/rhel8/basearch/ocp-tools/4.7 -a "x86_64 s390x ppc64le"
# /path/to/product/getLatestRPM.sh -s "$(pwd)" -r openshift-clients-4 -u https://rhsm-pulp.corp.redhat.com/content/dist/layered/rhel9/basearch/rhocp/4.7 -a "x86_64 s390x ppc64le"
# /path/to/product/getLatestRPM.sh -s "$(pwd)" -r helm-3 -u https://rhsm-pulp.corp.redhat.com/content/dist/layered/rhel9/basearch/ocp-tools/4.7 -a "x86_64 s390x ppc64le"

# try to compute branches from currently checked out branch; else fall back to hard coded value
# where to find redhat-developer/devspaces/${DWNSTM_BRANCH}/product/getLatestImageTags.sh
Expand Down Expand Up @@ -77,7 +77,7 @@ if [[ $brewTaskID ]]; then
google-chrome "https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=${brewTaskID}"
brew watch-logs ${brewTaskID} | tee /tmp/${brewTaskID}.txt

container="devspaces-${IMG}-rhel8"
container="devspaces-${IMG}-rhel9"
if [[ $container == *"operator"* ]]; then container="devspaces-${IMG}"; fi # special case for operator & metadata images

grep -E "registry.access.redhat.com/devspaces/.+/images/${DS_VERSION}-[0-9]+" /tmp/${brewTaskID}.txt | \
Expand Down
8 changes: 4 additions & 4 deletions product/checkImagesInCSV.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ Examples:
To compare latest image in Quay to latest CSV in bundle in latest IIB:
TAG=$PROD_VER; \\
IMG=devspaces/dashboard-rhel8; \\
IMG=devspaces/pluginregistry-rhel8; \\
IMG=devspaces/dashboard-rhel9; \\
IMG=devspaces/pluginregistry-rhel9; \\
img_quay=\$(${SCRIPTPATH}/getLatestImageTags.sh -b devspaces-\${TAG}-rhel-9 --quay --tag \"\${TAG}-\" -c \${IMG}); echo \$img_quay; \\
img_iib=\$(${SCRIPTPATH}/checkImagesInCSV.sh --ds -t \${TAG} -o 4.12 -y -qq -i \${IMG}); echo \$img_iib; \\
if [[ \$img_quay != \$img_iib ]]; then \\
Expand Down Expand Up @@ -141,9 +141,9 @@ for imageAndTag in $IMAGES; do
elif [[ $BREW -eq 1 ]]; then # check brew registry
# NOTE: could use registry-proxy.engineering.redhat.com/rh-osbs/ instead but that's internal facing,
# where brew.reg is auth'd and public
# convert registry.redhat.io/devworkspace/devworkspace-rhel8-operator
# convert registry.redhat.io/devworkspace/devworkspace-rhel9-operator
# to brew.registry.redhat.io/rh-osbs/devworkspace-operator
related_image=$(echo $related_image | sed -r -e "s#registry.redhat.io/.+/#brew.registry.redhat.io/rh-osbs/#" -e "s#-rhel8##g")
related_image=$(echo $related_image | sed -r -e "s#registry.redhat.io/.+/#brew.registry.redhat.io/rh-osbs/#" -e "s#-rhel9##g")
jqdump="$(skopeo inspect docker://${related_image} 2>&1)"
if [[ $jqdump == *"Labels"* ]]; then
tag=$(echo $jqdump | jq -r '.Labels.url' | sed -r -e "s#.+/images/##")
Expand Down
2 changes: 1 addition & 1 deletion product/collectBuildInfo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ getContainerFromTaskID () {

getContainerFromBuildID () {
# brew buildinfo 2203173 | grep Extra | sed -r -e "s@Extra: @@" | yq -r '.image.index.pull[]' | grep -v sha256
# registry-proxy.engineering.redhat.com/rh-osbs/devspaces-code-rhel8:3.3-6
# registry-proxy.engineering.redhat.com/rh-osbs/devspaces-code-rhel9:3.3-6
buildid=$1
container=$(brew buildinfo $buildid | grep Extra | sed -r -e "s@Extra: @@" | yq -r '.image.index.pull[]' | grep -v sha256 \
| sed -r -e "[email protected]/rh-osbs/@@")
Expand Down
2 changes: 1 addition & 1 deletion product/containerExtract.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ usage ()
Examples:
$0 quay.io/devspaces/devspaces-operator-bundle:latest
$0 quay.io/devworkspace/devworkspace-operator-bundle:next
$0 quay.io/devspaces/pluginregistry-rhel8:latest --tar-flags var/www/html/*/external_images.txt --arch ppc64le
$0 quay.io/devspaces/pluginregistry-rhel9:latest --tar-flags var/www/html/*/external_images.txt --arch ppc64le
Options:
--delete-before remove any local images before attempting to pull and extract a new copy
Expand Down
2 changes: 1 addition & 1 deletion product/copyImageToQuay.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ for image in $images; do
if [[ ${QUAYDEST} =~ .*(devworkspace-|)(rhel8-|)operator:.+ ]]; then QUAYDEST="devworkspace/devworkspace-rhel8-operator:${TAG}"; fi
elif [[ $URLfrag == *"devspaces"* ]]; then
if [[ ${QUAYDEST} == *"/operator-bundle:"* ]]; then QUAYDEST="devspaces/devspaces-operator-bundle:${TAG}"; fi
if [[ ${QUAYDEST} == *"/operator:"* ]]; then QUAYDEST="devspaces/devspaces-rhel8-operator:${TAG}"; fi
if [[ ${QUAYDEST} == *"/operator:"* ]]; then QUAYDEST="devspaces/devspaces-rhel9-operator:${TAG}"; fi
else
# replace /rh-osbs/foo-image with foo/image
QUAYDEST=$(echo $QUAYDEST | sed -r -e "s#rh-osbs/([^-])-#\1/#g")
Expand Down
14 changes: 7 additions & 7 deletions product/getCommitSHAForTag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ fi
usage () {
echo "
Usage: for 1 or more containers in quay or Pulp, compute the NVR, Build URL, and Source commit for that build. eg.,
$0 quay.io/devspaces/udi-rhel8:3.y-1 quay.io/devspaces/udi-rhel8:3.y-1 ...
$0 registry-proxy.engineering.redhat.com/rh-osbs/devspaces-udi-rhel8 -j 3.y -n 2 | show last 2 tags
$0 quay.io/devspaces/udi-rhel9:3.y-1 quay.io/devspaces/udi-rhel9:3.y-1 ...
$0 registry-proxy.engineering.redhat.com/rh-osbs/devspaces-udi-rhel9 -j 3.y -n 2 | show last 2 tags
"
exit
}
Expand Down Expand Up @@ -65,7 +65,7 @@ fi
for d in $CONTAINERS; do
echo
echo "$d"
d=${d/devspaces-3-rhel8-/} # special case for operator and metadata images
d=${d/devspaces-3-rhel9-/} # special case for operator and metadata images

#strip off the registry and just find the container name
dd=${d#*/}
Expand All @@ -77,13 +77,13 @@ for d in $CONTAINERS; do
candidateTagUsed="${candidateTag}"
fi

CONTNAME=${dd%%:${TAG}}; CONTNAME=${CONTNAME##*/}; CONTNAME=${CONTNAME%%-rhel8}
CONTNAME=${dd%%:${TAG}}; CONTNAME=${CONTNAME##*/}; CONTNAME=${CONTNAME%%-rhel9}
# echo "Search for $CONTNAME :: $TAG"
# echo " brew list-tagged ${candidateTag} | grep -E \"${CONTNAME}-container|${CONTNAME}-rhel8-container\" | sed -r -e \"s#${candidateTagUsed}.+##\" | sort -V"
# echo " brew list-tagged ${candidateTag} | grep -E \"${CONTNAME}-container|${CONTNAME}-rhel9-container\" | sed -r -e \"s#${candidateTagUsed}.+##\" | sort -V"
if [[ $TAG != ${dd} ]]; then
NVRs=$(brew list-tagged ${candidateTagUsed} | grep -E "${CONTNAME}-container|${CONTNAME}-rhel8-container" | sed -e "s#${candidateTagUsed}.\+##" | sort -V | grep ${TAG})
NVRs=$(brew list-tagged ${candidateTagUsed} | grep -E "${CONTNAME}-container|${CONTNAME}-rhel9-container" | sed -e "s#${candidateTagUsed}.\+##" | sort -V | grep ${TAG})
else
NVRs=$(brew list-tagged ${candidateTagUsed} | grep -E "${CONTNAME}-container|${CONTNAME}-rhel8-container" | sed -e "s#${candidateTagUsed}.\+##" | sort -Vr | head -${NUMTAGS})
NVRs=$(brew list-tagged ${candidateTagUsed} | grep -E "${CONTNAME}-container|${CONTNAME}-rhel9-container" | sed -e "s#${candidateTagUsed}.\+##" | sort -Vr | head -${NUMTAGS})
fi
for NVR in $NVRs; do
echo " NVR: $NVR"
Expand Down
34 changes: 17 additions & 17 deletions product/getLatestImageTags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,20 @@ checkVersion() {
checkVersion 1.1 "$(skopeo --version | sed -e "s/skopeo version //")" skopeo

DS_CONTAINERS="\
devspaces/code-rhel8 \
devspaces/configbump-rhel8 \
devspaces/devspaces-rhel8-operator \
devspaces/code-rhel9 \
devspaces/configbump-rhel9 \
devspaces/devspaces-rhel9-operator \
devspaces/devspaces-operator-bundle \
devspaces/dashboard-rhel8 \
devspaces/dashboard-rhel9 \
\
devspaces/idea-rhel8 \
devspaces/imagepuller-rhel8 \
devspaces/machineexec-rhel8 \
devspaces/pluginregistry-rhel8 \
devspaces/server-rhel8 \
devspaces/idea-rhel9 \
devspaces/imagepuller-rhel9 \
devspaces/machineexec-rhel9 \
devspaces/pluginregistry-rhel9 \
devspaces/server-rhel9 \
\
devspaces/traefik-rhel8 \
devspaces/udi-rhel8 \
devspaces/traefik-rhel9 \
devspaces/udi-rhel9 \
"

# regex pattern of container tags to exclude, eg., latest and -source; also exclude images generated by PR or temporary builds used for publishing assets
Expand Down Expand Up @@ -145,9 +145,9 @@ Usage:
$0 -b ${DWNSTM_BRANCH} --arches | use default list of DS images in RHEC Prod; show arches
$0 -c devspaces/iib --quay -o v4.12 --tag ${DS_VERSION}-v4.12 | search for latest Dev Spaces IIBs in quay for a given OCP version
$0 -c devspaces/code-rhel8 --quay | check latest tag for specific Quay image(s), with branch = ${DWNSTM_BRANCH}
$0 -c devspaces/code-rhel9 --quay | check latest tag for specific Quay image(s), with branch = ${DWNSTM_BRANCH}
$0 -c devspaces-operator --osbs | check an image from OSBS
$0 -c devspaces-devspaces-rhel8-operator --nvr | check an NVR from OSBS
$0 -c devspaces-devspaces-rhel9-operator --nvr | check an NVR from OSBS
$0 -c ubi7-minimal -c ubi8-minimal --osbs -n 3 --tag . | check OSBS registry; show all tags; show 3 tags per container
$0 -c 'devtools/go-toolset-rhel7 ubi7/go-toolset' --tag 1.1* | check RHEC prod registry; show 1.1* tags (exclude latest and -sources)
$0 -c pivotaldata/centos --docker --dockerfile | check docker registry; show Dockerfile contents (requires dfimage)
Expand Down Expand Up @@ -242,9 +242,9 @@ if [[ ${REGISTRY} != "" ]]; then
REGISTRYPRE="${REGISTRY##*://}/"
if [[ ${REGISTRY} == *"registry-proxy.engineering.redhat.com"* ]]; then
if [[ ${CONTAINERS} == "" ]] || [[ ${CONTAINERS} == "${DS_CONTAINERS}" ]]; then
CONTAINERS="${DS_CONTAINERS}"; CONTAINERS=${CONTAINERS//devspaces-3-rhel8-/}; CONTAINERS="${CONTAINERS//devspaces\//devspaces-}"
CONTAINERS="${DS_CONTAINERS}"; CONTAINERS=${CONTAINERS//devspaces-3-rhel9-/}; CONTAINERS="${CONTAINERS//devspaces\//devspaces-}"
CONTAINERS="${CONTAINERS//devspaces-devspaces/devspaces}"
CONTAINERS="${CONTAINERS/devspaces-rhel8-operator/devspaces-operator}"
CONTAINERS="${CONTAINERS/devspaces-rhel9-operator/devspaces-operator}"
fi
elif [[ ${REGISTRY} == *"quay.io"* ]]; then
searchTag=":${latestNext}"
Expand Down Expand Up @@ -294,7 +294,7 @@ if [[ ${SHOWNVR} -eq 1 ]]; then
for containername in ${CONTAINERS}; do
(( c = c + 1 ))
# NEW: devspaces/devspaces-operator-bundle -> devspaces-operator-bundle
# NEW: devspaces/devspaces-rhel8-operator -> devspaces-rhel8-operator
# NEW: devspaces/devspaces-rhel9-operator -> devspaces-rhel9-operator
containername="${containername/devspaces-/}"
if [[ ${VERBOSE} -eq 1 ]]; then
# shellcheck disable=SC2028
Expand Down Expand Up @@ -445,7 +445,7 @@ for URLfrag in $CONTAINERS; do
QUAYDEST="${REGISTRYPRE}${URLfrag}"; QUAYDEST=${QUAYDEST##*devspaces-} # udi or operator
# special case for the operator and bundle images, which don't follow the same pattern in osbs as quay
if [[ ${QUAYDEST} == "operator-bundle" ]]; then QUAYDEST="devspaces-operator-bundle"; fi
if [[ ${QUAYDEST} == "operator" ]]; then QUAYDEST="devspaces-rhel8-operator"; fi
if [[ ${QUAYDEST} == "operator" ]]; then QUAYDEST="devspaces-rhel9-operator"; fi
QUAYDEST="quay.io/devspaces/${QUAYDEST}"

if [[ $(skopeo --insecure-policy inspect docker://${QUAYDEST}:${LATESTTAG} 2>&1) == *"Error"* ]] || [[ ${PUSHTOQUAYFORCE} -eq 1 ]]; then
Expand Down
8 changes: 4 additions & 4 deletions product/getTagForImage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ usage () {
Usage:
$0 [image1] [image2] [image3] ... [-t show container names, sorted]
Examples:
$0 quay.io/devspaces/devspaces-rhel8-operator:3.0-1 registry.redhat.io/devspaces/server-rhel8:3.0 devspaces-operator-bundle-container-3.0-2
$0 quay.io/devspaces/devspaces-rhel9-operator:3.0-1 registry.redhat.io/devspaces/server-rhel9:3.0 devspaces-operator-bundle-container-3.0-2
$0 \$(cat LATEST_IMAGES) -s
"
exit
Expand All @@ -31,11 +31,11 @@ for d in $images; do
c="";
c="${d%:*}" # trim off the tag
c="${c##*/}" # trim repo and org
c="${c##*devspaces-3-rhel8-}" # trim devspaces-3-rhel-9 prefix
c="${c/-rhel8/}" # trim container midfix
c="${c##*devspaces-3-rhel9-}" # trim devspaces-3-rhel-9 prefix
c="${c/-rhel9/}" # trim container midfix
c="${c##*devspaces-}" # trim container prefix
c="${c%%-container-*}" # trim container suffix
c="${c%%-rhel8}" # trim container suffix
c="${c%%-rhel9}" # trim container suffix
else
(( c = c + 1 ))
fi
Expand Down
2 changes: 1 addition & 1 deletion product/getTagForSHA.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ checkImage () {
if [[ $URL ]]; then
container=${URL}
container=${image}:${container##*/images/}
# replace quay.io/devspaces/devspaces-rhel8-operator:3.4:3.4-22 with quay.io/devspaces/devspaces-rhel8-operator:3.4-22
# replace quay.io/devspaces/devspaces-rhel9-operator:3.4:3.4-22 with quay.io/devspaces/devspaces-rhel9-operator:3.4-22
container=$(echo "$container" | sed -r -e "s@:[0-9.]+:@:@")
if [[ $QUIET -eq 0 ]]; then echo "Got $container"; else echo "$container"; fi
checkImage_result="true"
Expand Down
4 changes: 2 additions & 2 deletions product/manifest/get-3rd-party-deps-manifests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ if [[ ${phases} == *"1"* ]]; then
devspaces-server \
; do
if [[ $d == "devspaces" ]]; then
containerName=${d##containers/}-server-rhel8-container
containerName=${d##containers/}-server-rhel9-container
else
containerName=${d##containers/}-rhel8-container
containerName=${d##containers/}-rhel9-container
fi
# echo $containerName
log ""
Expand Down
2 changes: 1 addition & 1 deletion product/manifest/get-3rd-party-deps-rpms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function loadNVRlog() {
MANIFEST_FILE2="$2"
ARCH="$3"
# shellcheck disable=SC2001
URL=$(echo $NVR | sed -e "s#\(.\+\(-container\|-rhel8\)\)-\([0-9.]\+\)-\([0-9.]\+\)#https://download.eng.bos.redhat.com/brewroot/packages/\1/\3/\4/data/logs/${ARCH}-build.log#")
URL=$(echo $NVR | sed -e "s#\(.\+\(-container\|-rhel9\)\)-\([0-9.]\+\)-\([0-9.]\+\)#https://download.eng.bos.redhat.com/brewroot/packages/\1/\3/\4/data/logs/${ARCH}-build.log#")
# log ""
log " ${URL}"

Expand Down
2 changes: 1 addition & 1 deletion product/manifest/get-3rd-party-sources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ if [[ ${phases} == *"1"* ]]; then
# shellcheck disable=SC2013
for d in $(sort "${WORKSPACE}"/NVRs.txt); do
NVR=${d}
SOURCES_DIR=${d%-container-*}; SOURCES_DIR=${SOURCES_DIR/-rhel8}; # echo $SOURCES_DIR
SOURCES_DIR=${d%-container-*}; SOURCES_DIR=${SOURCES_DIR/-rhel9}; # echo $SOURCES_DIR
echo "git clone --depth 1 --branch ${MIDSTM_BRANCH} to ${SOURCES_DIR} ..."
git clone --depth 1 --branch "${MIDSTM_BRANCH}" "ssh://${pduser}@pkgs.devel.redhat.com/containers/${SOURCES_DIR}" "${SOURCES_DIR}" || true
cd "${SOURCES_DIR}" && git checkout "${MIDSTM_BRANCH}" -q && cd ..
Expand Down
8 changes: 4 additions & 4 deletions product/rhpkg-container-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ fi
# "2.0"
# ],
# "pull": [
# "registry-proxy.engineering.redhat.com/rh-osbs/devspaces-pluginregistry-rhel8@sha256:85c89a1d9e382bebe70f4204f05f06f0fc2b9c76f1c3ca2983c17989b92239fe",
# "registry-proxy.engineering.redhat.com/rh-osbs/devspaces-pluginregistry-rhel8:2.0-212"
# "registry-proxy.engineering.redhat.com/rh-osbs/devspaces-pluginregistry-rhel9@sha256:85c89a1d9e382bebe70f4204f05f06f0fc2b9c76f1c3ca2983c17989b92239fe",
# "registry-proxy.engineering.redhat.com/rh-osbs/devspaces-pluginregistry-rhel9:2.0-212"
# ],
# "tags": [
# "2.0-212"
Expand Down Expand Up @@ -123,7 +123,7 @@ if [[ $REPOS ]] && [[ ${VERBOSE} -eq 1 ]]; then echo "[INFO] #2 Console parser s
# OPTION 2/3
if [[ ! ${REPOS} ]] || [[ ${REPOS} == " " ]]; then
# for scratch builds look for this line:
# ^ADD Dockerfile-devspaces-server-rhel8-2.0-scratch-89319-20191122035915 /root/buildinfo/Dockerfile-devspaces-server-rhel8-2.0-scratch-89319-20191122035915
# ^ADD Dockerfile-devspaces-server-rhel9-2.0-scratch-89319-20191122035915 /root/buildinfo/Dockerfile-devspaces-server-rhel9-2.0-scratch-89319-20191122035915
echo "REPO_PATH=\"$(grep --text -E "^ADD Dockerfile-devspaces-" "${LOGFILE}" | sed -r -e "s@\[[TZ0123456789.:-]+\]@@" \
| sed -r -e "s@^ADD Dockerfile-devspaces-(.+) /root/.+@\1@" | sort -u | tr "\n\r" " " )\"" \
| tee "${WORKSPACE}"/build_desc.txt
Expand Down Expand Up @@ -184,7 +184,7 @@ TASK_URL="$(grep --text "Task info: https://brewweb.engineering.redhat.com/brew/
TASK_ID="${TASK_URL##*=}"
BUILD_DESC=$(echo $REPO_PATH | sed -r \
-e 's#registry-proxy.engineering.redhat.com/rh-osbs/devspaces-#quay.io/devspaces/#g' \
-e 's#(quay.io/devspaces/.+-rhel8:[0-9.-]+) *#<a href="https://\1">\1</a> #g' \
-e 's#(quay.io/devspaces/.+-rhel9:[0-9.-]+) *#<a href="https://\1">\1</a> #g' \
-e 's#(quay.io/devspaces)/(operator|operator-bundle):([0-9.-]+) *#<a href="https://\1/devspaces-3-rhel-9-\2:\3">\1/devspaces-3-rhel-9-\2:\3</a> #g'
)
BUILD_RESULT="SUCCESS"
Expand Down
2 changes: 1 addition & 1 deletion product/updateBaseImages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ for d in $(find "${WORKDIR}/" -maxdepth "${MAXDEPTH}" -name "${DOCKERFILE}" | so
echo "# Checking ${d} ..."
# pull latest commits
if [[ -d ${d%%/${DOCKERFILE}} ]]; then pushd "${d%%/${DOCKERFILE}}" >/dev/null; pushedIn=1; fi
if [[ "${d%/${DOCKERFILE}}" == *"-rhel8" ]]; then
if [[ "${d%/${DOCKERFILE}}" == *"-rhel9" ]]; then
BRANCHUSED=${SOURCES_BRANCH/rhel-7/rhel-8/rhel-9}
else
BRANCHUSED=${SOURCES_BRANCH}
Expand Down

0 comments on commit 9deaabb

Please sign in to comment.