Skip to content

Commit 350e3c8

Browse files
committed
Update job config file. 3.x is 3.18, remove 3.15 latest is 3.17
1 parent 934ef60 commit 350e3c8

File tree

3 files changed

+6
-22
lines changed

3 files changed

+6
-22
lines changed

dependencies/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.17
1+
3.18

dependencies/che-plugin-registry/deploy/openshift/devspaces-plugin-registry.yaml

+3-12
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
#
2-
# Copyright (c) 2018-2023 Red Hat, Inc.
3-
# This program and the accompanying materials are made
4-
# available under the terms of the Eclipse Public License 2.0
5-
# which is available at https://www.eclipse.org/legal/epl-2.0/
6-
#
7-
# SPDX-License-Identifier: EPL-2.0
8-
#
9-
# Contributors:
10-
# Red Hat, Inc. - initial API and implementation
111
apiVersion: template.openshift.io/v1
122
kind: Template
133
metadata:
@@ -117,9 +107,10 @@ parameters:
117107
- name: IMAGE
118108
value: registry.redhat.io/devspaces/pluginregistry-rhel8
119109
displayName: Red Hat OpenShift Dev Spaces plugin registry image
120-
description: Red Hat OpenShift Dev Spaces plugin registry container image. Defaults to registry.redhat.io/devspaces/pluginregistry-rhel8
110+
description: Red Hat OpenShift Dev Spaces plugin registry container image. Defaults
111+
to registry.redhat.io/devspaces/pluginregistry-rhel8
121112
- name: IMAGE_TAG
122-
value: '3.17'
113+
value: '3.18'
123114
displayName: Red Hat OpenShift Dev Spaces plugin registry version
124115
description: Red Hat OpenShift Dev Spaces plugin registry version
125116
- name: MEMORY_LIMIT

product/updateVersionAndRegistryTags.sh

+2-9
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ while [[ "$#" -gt 0 ]]; do
6161
'-b') BRANCH="$2"; shift 1;;
6262
'-w') WORKDIR="$2"; shift 1;;
6363
'-v') VERBOSE=1; shift 0;;
64-
'-nv'|'--no-version') doupdateversion=0; shift 0;;
64+
'--no-version') doupdateversion=0; shift 0;;
6565
'--remove') REMOVE_DEVSPACES_VERSION="$2"; shift 1;;
6666
'--enable-jobs') ENABLE_JOBS_VERSION="$2"; shift 1;;
6767
'--disable-jobs') DISABLE_JOBS_VERSION="$2"; shift 1;;
@@ -274,16 +274,9 @@ updatePluginRegistry() {
274274
SCRIPT_DIR="${REG_ROOT}/build/scripts"
275275
YAML_ROOT="${REG_ROOT}"
276276
TEMPLATE_FILE="${REG_ROOT}/deploy/openshift/devspaces-plugin-registry.yaml"
277-
for yaml in $("$SCRIPT_DIR"/list_che_yaml.sh "$YAML_ROOT"); do
278-
sed -r \
279-
-e "s#(.*image: (['\"]*)(registry.redhat.io|quay.io)/devspaces/.*:)[0-9.]+(['\"]*)#\1${DEVSPACES_VERSION}\2#g" \
280-
-e "s#quay.io/devspaces/#registry.redhat.io/devspaces/#g" \
281-
-e "s|# Copyright.*|# Copyright (c) 2018-$(date +%Y) Red Hat, Inc.|g" \
282-
-i "${yaml}"
283-
done
284277

285278
# update '.parameters[]|select(.name=="IMAGE_TAG")|.value' ==> 3.yy
286-
yq -ri "(.parameters[] | select(.name == \"IMAGE_TAG\") | .value ) = \"${DEVSPACES_VERSION}\"" "${TEMPLATE_FILE}"
279+
yq -yi "(.parameters[] | select(.name == \"IMAGE_TAG\") | .value ) = \"${DEVSPACES_VERSION}\"" "${TEMPLATE_FILE}"
287280

288281
git diff -q "${YAML_ROOT}" "${TEMPLATE_FILE}" || true
289282
}

0 commit comments

Comments
 (0)