Skip to content

Commit

Permalink
ci(release): make release-please workflow update image tag (#31)
Browse files Browse the repository at this point in the history
Co-authored-by: Bendik Paulsrud <[email protected]>
  • Loading branch information
erikgb and bendikp authored Jan 11, 2023
1 parent 90fd0e8 commit 8f3e6f5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

<!-- x-release-please-start-version -->
```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
```
<!-- x-release-please-end -->
If you have multiple clusters, you should create one
[variant](https://kubectl.docs.kubernetes.io/references/kustomize/glossary/#variant)
Expand Down
8 changes: 8 additions & 0 deletions kustomization.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8f3e6f5

Please sign in to comment.