Skip to content

Commit e419e09

Browse files
committed
feat: Update build and push tasks to require VERSION and REPO_URL variables
1 parent 29b7ddb commit e419e09

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

Taskfile.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,14 @@ tasks:
3535
deps:
3636
- tools:ocm
3737
- tools:localtmp
38+
requires:
39+
vars:
40+
- VERSION
41+
- REPO_URL
3842
vars:
3943
compdir: '{{.LOCALTMP}}/component'
4044
desc: Build ocm component
4145
cmds:
42-
# - |
43-
# ocm add componentversions \
44-
# --copy-resources --force --create \
45-
# --file {{.compdir}} \
46-
# --settings settings.yaml \
47-
# component-constructor.yaml
4846
- |
4947
"{{.OCM}}" add componentversions \
5048
--file "{{.compdir}}" \
@@ -63,10 +61,14 @@ tasks:
6361
push:
6462
deps:
6563
- tools:ocm
66-
- tools:localtmp
6764
desc: Push to OCM Registry
65+
run: once
66+
requires:
67+
vars:
68+
- VERSION
69+
- LOCALTMP
6870
cmds:
69-
- ocm transfer ctf -f {{.compdir}} "{{.COMPONENT_REGISTRY}}" {{.overwrite_mod}}
71+
- '{{.OCM}} transfer ctf -f {{.compdir}} "{{.COMPONENT_REGISTRY}}" {{.overwrite_mod}}'
7072
vars:
7173
compdir: '{{.LOCALTMP}}/component'
7274
overwrite_mod:

0 commit comments

Comments
 (0)