Skip to content

Commit 7ec89db

Browse files
authored
Merge pull request #9 from kubewarden/gha-v2
feat: Move to GHA v2
2 parents a2f866e + f25846a commit 7ec89db

4 files changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/release.yml.template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
test:
1313
name: run tests and linters
14-
uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-swift.yml@v1
14+
uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-swift.yml@v2
1515

1616
release:
1717
needs: test
@@ -23,8 +23,8 @@ jobs:
2323
# Required by cosign keyless signing
2424
id-token: write
2525

26-
uses: kubewarden/github-actions/.github/workflows/reusable-release-policy-swift.yml@v1
26+
uses: kubewarden/github-actions/.github/workflows/reusable-release-policy-swift.yml@v2
2727
with:
28-
oci-target: # FIXME: use something like: ghcr.io/${{ github.repository_owner }}/policies/pod-runtime
28+
oci-target: # FIXME: use something like: ghcr.io/${{ github.repository_owner }}/policies/policy-name
2929
secrets:
3030
workflow-pat: ${{ secrets.WORKFLOW_PAT }}

.github/workflows/test.yml.template

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@ name: Continuous integration
33
jobs:
44
test:
55
name: run tests and linters
6-
uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-swift.yml@v1
7-
with:
8-
artifacthub: false # change to true to check artifacthub-pkg.yml
6+
uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-swift.yml@v2

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ artifacthub-pkg.yml: metadata.yml
4949
&& mv artifacthub-pkg.yml.tmp artifacthub-pkg.yml \
5050
|| rm -f artifacthub-pkg.yml.tmp
5151

52-
annotate:
52+
annotate: artifacthub-pkg.yml
5353
kwctl annotate -m metadata.yml -u README.md -o annotated-policy.wasm policy.wasm
5454

5555
e2e-tests:

metadata.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ mutating: false
77
contextAware: false
88
executionMode: kubewarden-wapc
99
annotations:
10+
# artifacthub specific:
11+
io.artifacthub.displayName: Policy Name
12+
io.artifacthub.resources: Pod
13+
io.artifacthub.keywords: pod, cool policy, kubewarden
14+
io.kubewarden.policy.ociUrl: ghcr.io/yourorg/policies/policy-name # must match release workflow oci-target
15+
# kubewarden specific:
1016
io.kubewarden.policy.title: policy-name
1117
io.kubewarden.policy.description: Short description
1218
io.kubewarden.policy.author: policy-author

0 commit comments

Comments
 (0)