Skip to content

Commit

Permalink
Merge pull request #9883 from deneb-alpha/rebrandTags
Browse files Browse the repository at this point in the history
Rebrand the product to Multi-Linux Manager
  • Loading branch information
deneb-alpha authored Mar 3, 2025
2 parents 531f7e7 + a447251 commit 90b06e3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions rel-eng/chart_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ if [ -f "${SRPM_PKG_DIR}/Chart.yaml" ]; then
if [ "${OSCAPI}" == "https://api.suse.de" ]; then
# SUSE Manager settings
VERSION=$(echo ${PRODUCT_VERSION} | sed 's/^\([0-9]\+\.[0-9]\+\).*$/\1/')
sed "/^#\!BuildTag:/s/uyuni/suse\/manager\/${VERSION}/g" -i ${SRPM_PKG_DIR}/Chart.yaml
sed "s/^home: .*$/home: https:\/\/www.suse.com\/products\/suse-manager\//" -i ${SRPM_PKG_DIR}/Chart.yaml
sed "/^#\!BuildTag:/s/uyuni/multi-linux-manager\/${VERSION}/g" -i ${SRPM_PKG_DIR}/Chart.yaml
sed "s/^home: .*$/home: https:\/\/www.suse.com\/products\/multi-linux-manager\//" -i ${SRPM_PKG_DIR}/Chart.yaml
CHART_TAR=$(ls ${SRPM_PKG_DIR}/*.tar)
mkdir ${SRPM_PKG_DIR}/tar
tar xf $CHART_TAR -C ${SRPM_PKG_DIR}/tar
sed "s/^repository: .\+$/repository: registry.suse.com\/suse\/manager\/${VERSION}/" -i ${SRPM_PKG_DIR}/tar/values.yaml
sed "s/^repository: .\+$/repository: registry.suse.com\/multi-linux-manager\/${VERSION}/" -i ${SRPM_PKG_DIR}/tar/values.yaml
tar cf $CHART_TAR -C ${SRPM_PKG_DIR}/tar .
rm -rf ${SRPM_PKG_DIR}/tar
NAME="suse\/manager\/${VERSION}\/${NAME}"
NAME="multi-linux-manager\/${VERSION}\/${NAME}"
else
NAME="uyuni\/${NAME}"
fi
Expand Down
10 changes: 5 additions & 5 deletions rel-eng/container_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if [ -f "${SRPM_PKG_DIR}/Dockerfile" ]; then
NAME="${PKG_NAME%%-image}"
# check which endpoint we are using to match the product
if [ "${OSCAPI}" == "https://api.suse.de" ]; then
# SUSE Manager settings
# SUSE Multi-Linux Manager settings
VERSION=$(echo ${PRODUCT_VERSION} | sed 's/^\([0-9]\+\.[0-9]\+\).*$/\1/')
ARCH=
# OBS cannot find the dependencies with a placeholder or %_arch from the project config.
Expand All @@ -45,17 +45,17 @@ if [ -f "${SRPM_PKG_DIR}/Dockerfile" ]; then
if [ "${NAME}" != "init" ]; then
ARCH="\/%ARCH%"
fi
sed "/^#\!BuildTag:/s/uyuni/suse\/manager\/${VERSION}${ARCH}/g" -i ${SRPM_PKG_DIR}/Dockerfile
sed "/^#\!BuildTag:/s/uyuni/multi-linux-manager\/${VERSION}${ARCH}/g" -i ${SRPM_PKG_DIR}/Dockerfile
sed "s/^\(LABEL org.opensuse.reference=\)\"\([^:]\+:\)\([^%]\+\)%RELEASE%\"/\1\"\2${PRODUCT_VERSION}.%RELEASE%\"/" -i ${SRPM_PKG_DIR}/Dockerfile
sed "/^# labelprefix=/s/org\.opensuse\.uyuni/com.suse.manager/" -i ${SRPM_PKG_DIR}/Dockerfile
sed "/^# labelprefix=/s/org\.opensuse\.uyuni/com.suse.multilinuxmanager/" -i ${SRPM_PKG_DIR}/Dockerfile
sed "s/^ARG VENDOR=.*$/ARG VENDOR=\"SUSE LLC\"/" -i ${SRPM_PKG_DIR}/Dockerfile
sed "s/^ARG PRODUCT=.*$/ARG PRODUCT=\"SUSE Manager\"/" -i ${SRPM_PKG_DIR}/Dockerfile
sed "s/^ARG PRODUCT=.*$/ARG PRODUCT=\"SUSE Multi-Linux Manager\"/" -i ${SRPM_PKG_DIR}/Dockerfile
sed "s/^LABEL org\.opensuse\.reference=\"\${REFERENCE_PREFIX}/LABEL org.opensuse.reference=\"\${REFERENCE_PREFIX}${ARCH}/" -i ${SRPM_PKG_DIR}/Dockerfile
sed "/^# labelprefix=.*$/aLABEL com.suse.eula=\"${EULA}\"" -i ${SRPM_PKG_DIR}/Dockerfile
sed "/^# labelprefix=.*$/aLABEL com.suse.release-stage=\"${RELEASE_STAGE}\"" -i ${SRPM_PKG_DIR}/Dockerfile
sed "/^# labelprefix=.*$/aLABEL com.suse.lifecycle-url=\"https://www.suse.com/lifecycle/\"" -i ${SRPM_PKG_DIR}/Dockerfile
sed "/^# labelprefix=.*$/aLABEL com.suse.supportlevel=\"l3\"" -i ${SRPM_PKG_DIR}/Dockerfile
NAME="suse\/manager\/${VERSION}${ARCH}\/${NAME}"
NAME="multi-linux-manager\/${VERSION}${ARCH}\/${NAME}"
else
NAME="uyuni\/${NAME}"
fi
Expand Down

0 comments on commit 90b06e3

Please sign in to comment.