Skip to content

Commit 8542fff

Browse files
authored
fix: added ui backend to ocm component and set version in taskfile (#382)
1 parent c2efe6d commit 8542fff

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

Taskfile.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ vars:
1515
OCM_OUTPUT_DIR: '{{.ROOT_DIR}}/.ctf'
1616
OCM_DESCRIPTOR: '{{.ROOT_DIR}}/ocm/component-descriptor.yaml'
1717

18+
# Backend Image Version
19+
BACKEND_IMAGE_URL: ghcr.io/openmcp-project/mcp-ui-backend
20+
BACKEND_IMAGE_VERSION: v0.7.1
21+
1822
ROOT_DIR2: '{{.ROOT_DIR | trimSuffix "/common" | trimSuffix "/hack"}}'
1923
LOCALBIN: '{{ env "LOCALBIN" | default ( .LOCALBIN | default (print .ROOT_DIR2 "/.bin") ) }}'
2024
OCM: '{{ .OCM | default (print .LOCALBIN "/ocm") }}'
@@ -39,7 +43,9 @@ tasks:
3943
VERSION={{.OCM_COMPONENT_VERSION}} \
4044
IMAGE_VERSION={{.IMAGE_VERSION}} \
4145
COMPONENT_NAME={{.OCM_COMPONENT_NAME}} \
42-
PROVIDER={{.OCM_PROVIDER}}
46+
PROVIDER={{.OCM_PROVIDER}} \
47+
BACKEND_IMAGE_URL={{.BACKEND_IMAGE_URL}} \
48+
BACKEND_IMAGE_VERSION={{.BACKEND_IMAGE_VERSION}}
4349
vars:
4450
IMAGE_VERSION: '{{.IMAGE_VERSION | default (print .OCM_COMPONENT_VERSION)}}'
4551

VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

ocm/component-descriptor.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,9 @@ resources:
1111
access:
1212
type: ociArtifact
1313
imageReference: ghcr.io/openmcp-project/mcp-ui-frontend:${IMAGE_VERSION}
14+
- name: mcp-ui-backend-image
15+
type: ociImage
16+
version: ${BACKEND_IMAGE_VERSION}
17+
access:
18+
type: ociArtifact
19+
imageReference: ${BACKEND_IMAGE_URL}:${BACKEND_IMAGE_VERSION}

0 commit comments

Comments
 (0)