File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11on :
22 push :
33 branches :
4- - main
4+ - main
55 tags :
6- - ' v* '
6+ - " v* "
77
88name : Release policy
99
1010jobs :
11-
1211 test :
1312 name : run tests and linters
14- uses : kubewarden/github-actions/.github/workflows/reusable-test-policy-swift.yml@v3.1 .0
13+ uses : kubewarden/github-actions/.github/workflows/reusable-test-policy-swift.yml@72179510783eda8c052d17279881c3f7d02f968e # v4.0 .0
1514
1615 release :
1716 needs : test
2322 # Required by cosign keyless signing
2423 id-token : write
2524
26- uses : kubewarden/github-actions/.github/workflows/reusable-release-policy-swift.yml@v3.1 .0
25+ uses : kubewarden/github-actions/.github/workflows/reusable-release-policy-swift.yml@72179510783eda8c052d17279881c3f7d02f968e # v4.0 .0
2726 with :
2827 oci-target : ghcr.io/${{ github.repository_owner }}/policies/policy-name # FIXME
Original file line number Diff line number Diff line change @@ -3,4 +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@v3.1 .0
6+ uses : kubewarden/github-actions/.github/workflows/reusable-test-policy-swift.yml@72179510783eda8c052d17279881c3f7d02f968e # v4.0 .0
Original file line number Diff line number Diff line change 11CONTAINER_RUNTIME ?= docker
22CONTAINER_IMAGE := "ghcr.io/kubewarden/swift-wasm-runner:5.3-p1"
3- # It's necessary to call cut because kwctl command does not handle version
4- # starting with v.
5- VERSION ?= $(shell git describe | cut -c2-)
63
74build :
85ifndef CONTAINER_RUNTIME
4441 @printf "Optimize Wasm binary, hold on...\n"
4542 wasm-opt -Os .build/wasm32-unknown-wasi/release/Policy.wasm -o policy.wasm
4643
47- artifacthub-pkg.yml : metadata.yml
48- $(warning If you are updating the artifacthub-pkg.yml file for a release, \
49- remember to set the VERSION variable with the proper value. \
50- To use the latest tag, use the following command: \
51- make VERSION=$$(git describe --tags --abbrev=0 | cut -c2- ) annotated-policy.wasm)
52- kwctl scaffold artifacthub \
53- --metadata-path metadata.yml --version $(VERSION ) \
54- --output artifacthub-pkg.yml
55-
56-
57- annotate : artifacthub-pkg.yml
44+ annotate :
5845 kwctl annotate -m metadata.yml -u README.md -o annotated-policy.wasm policy.wasm
5946
6047e2e-tests :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11rules :
2- - apiGroups : [""]
3- apiVersions : ["v1"]
4- resources : ["pods"]
5- operations : ["CREATE"]
2+ - apiGroups : [""]
3+ apiVersions : ["v1"]
4+ resources : ["pods"]
5+ operations : ["CREATE"]
66mutating : false
77contextAware : false
88executionMode : kubewarden-wapc
@@ -19,6 +19,7 @@ annotations:
1919 io.kubewarden.policy.ociUrl : ghcr.io/yourorg/policies/policy-name # must match release workflow oci-target
2020 # kubewarden specific:
2121 io.kubewarden.policy.title : policy-name
22+ io.kubewarden.policy.version : 0.0.1-unreleased
2223 io.kubewarden.policy.description : Short description
2324 io.kubewarden.policy.author : " Author name <author-email@example.com>"
2425 io.kubewarden.policy.url : https://github.com/yourorg/policy-name
You can’t perform that action at this time.
0 commit comments