mirror of
https://gitea.com/gitea/helm-chart.git
synced 2024-07-04 23:34:12 +02:00
Update readme with renovate configuration for digest updates (#514)
### Description of the change Update README with information how to configure renovate to update digest for gitea charts. ### Benefits Automatic digest updates for people using renovate. Co-authored-by: Michał Małyska <999598+mmalyska@users.noreply.github.com> Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/514 Reviewed-by: justusbunsi <justusbunsi@noreply.gitea.com> Reviewed-by: pat-s <pat-s@noreply.gitea.com> Co-authored-by: mmalyska <mmalyska@noreply.gitea.com> Co-committed-by: mmalyska <mmalyska@noreply.gitea.com>
This commit is contained in:
parent
c2b0b677c1
commit
7a9df83d18
29
README.md
29
README.md
@ -27,6 +27,7 @@
|
|||||||
- [Metrics and profiling](#metrics-and-profiling)
|
- [Metrics and profiling](#metrics-and-profiling)
|
||||||
- [Pod annotations](#pod-annotations)
|
- [Pod annotations](#pod-annotations)
|
||||||
- [Themes](#themes)
|
- [Themes](#themes)
|
||||||
|
- [Renovate](#renovate)
|
||||||
- [Parameters](#parameters)
|
- [Parameters](#parameters)
|
||||||
- [Global](#global)
|
- [Global](#global)
|
||||||
- [strategy](#strategy)
|
- [strategy](#strategy)
|
||||||
@ -691,6 +692,34 @@ or natively via `kubectl`:
|
|||||||
kubectl create secret generic gitea-themes --from-file={{FULL-PATH-TO-CSS}} --namespace gitea
|
kubectl create secret generic gitea-themes --from-file={{FULL-PATH-TO-CSS}} --namespace gitea
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Renovate
|
||||||
|
|
||||||
|
To be able to use a digest value which is automatically updated by `Renovate` a [customManager](https://docs.renovatebot.com/modules/manager/regex/) is required.
|
||||||
|
Here's an examplary `values.yml` definition which makes use of a digest:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
image:
|
||||||
|
repository: gitea/gitea
|
||||||
|
tag: 1.20.2
|
||||||
|
digest: sha256:6e3b85a36653894d6741d0aefb41dfaac39044e028a42e0a520cc05ebd7bfc3f
|
||||||
|
```
|
||||||
|
|
||||||
|
By default Renovate adds digest after the `tag`.
|
||||||
|
To comply with the Gitea helm chart definition of the digest parameter, a "customManagers" definition is required:
|
||||||
|
|
||||||
|
```json
|
||||||
|
"customManagers": [
|
||||||
|
{
|
||||||
|
"customType": "regex",
|
||||||
|
"description": "Apply an explicit gitea digest field match",
|
||||||
|
"fileMatch": ["values\\.ya?ml"],
|
||||||
|
"matchStrings": ["(?<depName>gitea\\/gitea)\\n(?<indentation>\\s+)tag: (?<currentValue>[^@].*?)\\n\\s+digest: (?<currentDigest>sha256:[a-f0-9]+)"],
|
||||||
|
"datasourceTemplate": "docker",
|
||||||
|
"autoReplaceStringTemplate": "{{depName}}\n{{indentation}}tag: {{newValue}}\n{{indentation}}digest: {{#if newDigest}}{{{newDigest}}}{{else}}{{{currentDigest}}}{{/if}}"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
```
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
|
|
||||||
### Global
|
### Global
|
||||||
|
Loading…
Reference in New Issue
Block a user