Skip to content

Commit

Permalink
Remove uneeded replacements from push-packages-to-obs
Browse files Browse the repository at this point in the history
  • Loading branch information
juliogonzalez authored and cbosdo committed Jan 10, 2024
1 parent 9e1f2e5 commit 0e6e313
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions bin/push-packages-to-obs
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,10 @@ while read PKG_NAME; do
if [ "${OSCAPI}" == "https://api.suse.de" ]; then
# SUSE Manager settings
VERSION=$(sed 's/^\([0-9]\+\.[0-9]\+\).*$/\1/' ${GIT_DIR}/rel-eng/packages/uyuni-base)
sed "s/^ARG INIT_IMAGE=.*$/ARG INIT_IMAGE=suse\/manager\/5.0\/init:latest/" -i $SRPM_PKG_DIR/Dockerfile
sed "s/^ARG INIT_BASE=.*$/ARG INIT_BASE=bci\/bci-init:15.6/" -i $SRPM_PKG_DIR/Dockerfile
sed "s/^ARG PRODUCT_PATTERN_PREFIX=.*$/ARG PRODUCT_PATTERN_PREFIX=patterns-suma/" -i $SRPM_PKG_DIR/Dockerfile
sed "/^#\!BuildTag:/s/uyuni/suse\/manager\/${VERSION}/g" -i $SRPM_PKG_DIR/Dockerfile
sed "/^# labelprefix=/s/org\.opensuse\.uyuni/com.suse.manager/" -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 URL=.*$/ARG URL=\"https:\/\/www.suse.com\/products\/suse-manager\/\"/" -i $SRPM_PKG_DIR/Dockerfile
sed "s/^ARG REFERENCE_PREFIX=.*$/ARG REFERENCE_PREFIX=\"registry.suse.com\/suse\/manager\/${VERSION}\"/" -i $SRPM_PKG_DIR/Dockerfile
NAME="suse\/manager\/${VERSION}\/${NAME}"
else
NAME="uyuni\/${NAME}"
Expand Down
2 changes: 1 addition & 1 deletion uyuni-releng-tools.changes.juliogonzalez.50
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Adapt push-packages-to-obs to SUSE Manager 5.0
- Remove unneeded replaces from push-packages-to-obs

0 comments on commit 0e6e313

Please sign in to comment.