Skip to content

Commit fe0f003

Browse files
authored
chore: update devfile commands to use OpenVSX v0.33.0 (#1722)
Signed-off-by: Valerii Svydenko <vsvydenk@redhat.com>
1 parent 5304c24 commit fe0f003

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.devfile.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ commands:
145145
component: tool
146146
workingDir: ${PROJECTS_ROOT}/openvsx/deploy/openshift
147147
commandLine: |
148-
read -p "Please enter the value for OPENVSX_VERSION (default: v0.32.3): " OPENVSX_VERSION
149-
OPENVSX_VERSION=${OPENVSX_VERSION:-v0.32.3}
148+
read -p "Please enter the value for OPENVSX_VERSION (default: v0.33.0): " OPENVSX_VERSION
149+
OPENVSX_VERSION=${OPENVSX_VERSION:-v0.33.0}
150150
export OPENVSX_VERSION
151151
echo "OPENVSX_VERSION is set to $OPENVSX_VERSION"
152152
podman build -t "openvsx:$OPENVSX_VERSION" --build-arg "OPENVSX_VERSION=$OPENVSX_VERSION" -f openvsx.Dockerfile .&&
@@ -236,7 +236,7 @@ commands:
236236
kubectl exec -n "$OPENVSX_NAMESPACE" "$POSTGRESQL_POD_NAME" -- bash -c \
237237
"psql -d openvsx -c \"INSERT INTO user_data (id, login_name, role) VALUES (1001, '$OPENVSX_USER_NAME', 'privileged');\""
238238
kubectl exec -n "$OPENVSX_NAMESPACE" "$POSTGRESQL_POD_NAME" -- bash -c \
239-
"psql -d openvsx -c \"INSERT INTO personal_access_token (id, user_data, value, active, created_timestamp, accessed_timestamp, description) VALUES (1001, 1001, '$OPENVSX_USER_PAT', true, current_timestamp, current_timestamp, 'extensions publisher');\""
239+
"psql -d openvsx -c \"INSERT INTO personal_access_token (id, user_data, value, active, created_timestamp, accessed_timestamp, description, notified) VALUES (1001, 1001, '$OPENVSX_USER_PAT', true, current_timestamp, current_timestamp, 'extensions publisher', false);\""
240240
echo "✅ OpenVSX user and token inserted successfully."
241241
242242
- id: enable-internal-openvsx

deploy/openshift/openvsx.Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,13 @@ RUN git clone --branch ${VERSION} --depth 1 https://github.com/eclipse/openvsx.g
2828
RUN yarn --version \
2929
&& yarn --cwd webui \
3030
&& yarn --cwd webui install \
31-
&& yarn --cwd webui build \
3231
&& yarn --cwd webui build:default
3332

3433
# Main image derived from openvsx-server
35-
FROM ghcr.io/eclipse/openvsx-server:${OPENVSX_VERSION}
34+
FROM ghcr.io/eclipse-openvsx/openvsx-server:${OPENVSX_VERSION}
3635
ARG OPENVSX_VERSION
3736

38-
COPY --from=builder --chown=openvsx:openvsx /workdir/webui/static/ BOOT-INF/classes/static/
37+
COPY --from=builder --chown=openvsx:openvsx /workdir/webui/dist/ BOOT-INF/classes/static/
3938
COPY /application.yml config/
4039

4140
USER root

0 commit comments

Comments
 (0)