Skip to content

Commit 7089805

Browse files
committed
fix: update publish:ocm task description and add OCM_TRANSFER_ARGS support
1 parent c22e0ba commit 7089805

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ jobs:
7878
OCM_COMPONENT_VERSION: "v0.0.0-main"
7979

8080
- name: Publish OCM component
81-
run: task publish:ocm
81+
run: task publish:ocm OCM_TRANSFER_ARGS="--overwrite"

Taskfile.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ tasks:
4444
IMAGE_VERSION: '{{.IMAGE_VERSION | default (print .OCM_COMPONENT_VERSION)}}'
4545

4646
publish:ocm:
47-
desc: 'Publishes the ocm component to the registry.'
47+
desc: 'Publishes the ocm component to the registry. Usage: task publish:ocm [OCM_TRANSFER_ARGS="--overwrite"]'
4848
deps:
4949
- install:ocm
5050
cmds:
5151
- |
5252
{{.OCM}} transfer ctf \
53-
{{.OCM_OUTPUT_DIR}} {{.OCM_TARGET_REPO}}
53+
{{.OCM_OUTPUT_DIR}} {{.OCM_TARGET_REPO}} {{.OCM_TRANSFER_ARGS}}
5454
5555
build:image:local:
5656
desc: 'Builds the docker image for local testing. Usage: task test:build-image TAG=v-local-test'

0 commit comments

Comments
 (0)