diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index a34f7e60..9790f3ad 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -27,4 +27,7 @@ jobs: { "type": "fix", "section": "Bug Fixes" }, { "type": "build", "scope": "deps", "section": "Dependency Updates" } ] - release-type: go + release-type: simple + extra-files: | + kustomization.yaml + README.md diff --git a/README.md b/README.md index 3e682419..cb0ee3c4 100644 --- a/README.md +++ b/README.md @@ -127,10 +127,12 @@ the Image Scanner default kustomization as a [remote directory](https://github.com/kubernetes-sigs/kustomize/blob/master/examples/remoteBuild.md#remote-directories) base. Your initial kustomization.yaml could be as simple as: + ```yaml resources: - - https://github.com/statnett/image-scanner-operator//config/default?ref=vMAJOR.MINOR.PATCH + - https://github.com/statnett/image-scanner-operator?ref=v0.0.0 ``` + If you have multiple clusters, you should create one [variant](https://kubectl.docs.kubernetes.io/references/kustomize/glossary/#variant) diff --git a/kustomization.yaml b/kustomization.yaml new file mode 100644 index 00000000..760d0019 --- /dev/null +++ b/kustomization.yaml @@ -0,0 +1,8 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - config/default +images: + - name: image-scanner/controller + newName: ghcr.io/statnett/image-scanner-operator + newTag: 0.0.0 # x-release-please-version