-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
53 lines (46 loc) · 1.52 KB
/
Taskfile.yml
File metadata and controls
53 lines (46 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# https://taskfile.dev
version: '3'
vars:
REGISTRY: ghcr.io
SKILLS_BASE_REPOSITORY: arconia-io/agent-skills
VERSION: '{{.VERSION | default "latest"}}'
tasks:
default:
cmds:
- task --list
silent: true
skills:publish:
desc: Publish the Skills artifacts to the registry
cmds:
- |
arconia skills push --all \
--ref {{.REGISTRY}}/{{.SKILLS_BASE_REPOSITORY}} \
--path skills \
--tag {{.VERSION}} \
--additional-tag latest \
--output-report publish-skills-report.json
skills:sign:
desc: Sign the Skills artifacts with Cosign
cmds:
- |
jq -r '.artifacts[] | "\(.ref | split(":")[0])@\(.digest)"' publish-skills-report.json | while read -r artifact; do
cosign sign --yes "$artifact"
done
collection:publish:
desc: Publish the Skills Collection artifact to the registry
cmds:
- |
arconia skills collection push \
--name arconia-skills-collection \
--ref {{.REGISTRY}}/{{.SKILLS_BASE_REPOSITORY}}/collection \
--tag {{.VERSION}} \
--additional-tag latest \
--from-report publish-skills-report.json \
--output-report publish-skills-collection-report.json
collection:sign:
desc: Sign the Skills Collection artifacts with Cosign
cmds:
- |
jq -r '.artifacts[] | "\(.ref | split(":")[0])@\(.digest)"' publish-skills-collection-report.json | while read -r artifact; do
cosign sign --yes "$artifact"
done