1- version : " 3 "
1+ version : ' 3 '
22
33vars :
44 # Variables for Docker image
5- REGISTRY : {{.REGISTRY | default (print "ghcr.io/openmcp-project") }}
5+ REGISTRY : ' {{.REGISTRY | default (print "ghcr.io/openmcp-project") }}'
66 IMAGE_NAME : mcp-ui-frontend
77 IMAGE_TAG : ' {{.TAG | default "latest"}}'
8- DOCKER_IMAGE : " {{.REGISTRY}}/{{.IMAGE_NAME}}:{{.IMAGE_TAG}}"
8+ DOCKER_IMAGE : ' {{.REGISTRY}}/{{.IMAGE_NAME}}:{{.IMAGE_TAG}}'
99
1010 # Variables for OCM component
1111 OCM_COMPONENT_NAME : github.com/openmcp-project/ui
1212 OCM_COMPONENT_VERSION : ' {{.OCM_COMPONENT_VERSION | default .IMAGE_TAG}}'
1313 OCM_PROVIDER : openmcp-project
1414 OCM_TARGET_REPO : ' {{.OCM_TARGET_REPO | default (print .REGISTRY "/components") }}'
15- OCM_OUTPUT_DIR : " {{.ROOT_DIR}}/.ctf"
16- OCM_DESCRIPTOR : " {{.ROOT_DIR}}/ocm/component-descriptor.yaml"
15+ OCM_OUTPUT_DIR : ' {{.ROOT_DIR}}/.ctf'
16+ OCM_DESCRIPTOR : ' {{.ROOT_DIR}}/ocm/component-descriptor.yaml'
1717
1818tasks :
1919 default :
2222 - task --list
2323
2424 build:ocm :
25- desc : " Builds the ocm component. Usage: task build:ocm -- <version> "
25+ desc : ' Builds the ocm component. Usage: task build:ocm'
2626 cmds :
2727 - rm -rf {{.OCM_OUTPUT_DIR}}
2828 - |
@@ -31,24 +31,25 @@ tasks:
3131 --file {{.OCM_OUTPUT_DIR}} \
3232 {{.OCM_DESCRIPTOR}} -- \
3333 VERSION={{.OCM_COMPONENT_VERSION}} \
34+ IMAGE_VERSION={{.IMAGE_VERSION}} \
3435 COMPONENT_NAME={{.OCM_COMPONENT_NAME}} \
3536 PROVIDER={{.OCM_PROVIDER}}
3637 vars :
37- OCM_COMPONENT_VERSION : ' {{.CLI_ARGS }}'
38+ IMAGE_VERSION : ' {{.IMAGE_VERSION | default (print .OCM_COMPONENT_VERSION) }}'
3839
3940 publish:ocm :
40- desc : " Publishes the ocm component to the registry."
41+ desc : ' Publishes the ocm component to the registry.'
4142 cmds :
4243 - |
4344 ocm transfer ctf \
4445 {{.OCM_OUTPUT_DIR}} {{.OCM_TARGET_REPO}}
4546
4647 build:image:local :
47- desc : " Builds the docker image for local testing. Usage: task test:build-image TAG=v-local-test"
48+ desc : ' Builds the docker image for local testing. Usage: task test:build-image TAG=v-local-test'
4849 cmds :
4950 - docker build -t {{.DOCKER_IMAGE}} .
5051
5152 publish:image:local :
52- desc : " Publishes the docker image for local testing. Usage: task test:publish-image TAG=v-local-test"
53+ desc : ' Publishes the docker image for local testing. Usage: task test:publish-image TAG=v-local-test'
5354 cmds :
54- - docker push {{.DOCKER_IMAGE}}
55+ - docker push {{.DOCKER_IMAGE}}
0 commit comments