File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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 }}
Original file line number Diff line number Diff line change @@ -3,6 +3,4 @@ name: Continuous integration
33jobs:
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
Original file line number Diff line number Diff 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
5555e2e-tests :
Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ mutating: false
77contextAware : false
88executionMode : kubewarden-wapc
99annotations :
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
You can’t perform that action at this time.
0 commit comments