File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 test:
55 name: run tests and linters
66 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
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+ VERSION := $(shell git describe --exact-match --tags $(git log -n1 --pretty='%h' ) | cut -c2-)
34
45build :
56ifndef CONTAINER_RUNTIME
4142 @printf "Optimize Wasm binary, hold on...\n"
4243 wasm-opt -Os .build/wasm32-unknown-wasi/release/Policy.wasm -o policy.wasm
4344
45+ artifacthub-pkg.yml : metadata.yml
46+ kwctl scaffold artifacthub \
47+ --metadata-path metadata.yml --version $(VERSION ) \
48+ --questions-path questions-ui.yml > artifacthub-pkg.yml.tmp \
49+ && mv artifacthub-pkg.yml.tmp artifacthub-pkg.yml \
50+ || rm -f artifacthub-pkg.yml.tmp
51+
4452annotate :
45- kwctl annotate -m metadata.yml -o annotated-policy.wasm policy.wasm
53+ kwctl annotate -m metadata.yml -u README.md - o annotated-policy.wasm policy.wasm
4654
4755e2e-tests :
4856 bats e2e.bats
Original file line number Diff line number Diff line change 11---
2+ # ##
3+ # ## Use `make artifacthub-pkg.yml` to auto-generate this file
4+ # ## See docs.kubewarden.io for publishing to ArtifactHub
5+ # ##
26version : 0.0.1
37name : policy-name
48displayName : Policy Name
Original file line number Diff line number Diff line change @@ -13,7 +13,3 @@ annotations:
1313 io.kubewarden.policy.url : https://github.com/yourorg/policy-name
1414 io.kubewarden.policy.source : https://github.com/yourorg/policy-name
1515 io.kubewarden.policy.license : Apache-2.0
16- io.kubewarden.policy.usage : |
17- Long explaination.
18-
19- **Note well:** this can be Markdown text
You can’t perform that action at this time.
0 commit comments