Skip to content

Commit

Permalink
Add renovate config
Browse files Browse the repository at this point in the history
 - Changes tag if present
 - Tracks the same docker image version in appversion using regex

Incrementing the `Chart.yaml` version is tricker than expected,
postupgrade isn't available using the not-self-hosted app, and
the docker tags do not follow SemVer or we could just track that
  • Loading branch information
Laurence Gill committed Jul 13, 2023
1 parent 9858654 commit 064993d
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 12 deletions.
18 changes: 18 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
"config:recommended"
],
"regexManagers": [
{
"datasourceTemplate": "docker",
"fileMatch": [
"(^|/)Chart\\.yaml$"
],
"matchStrings": [
"#\\s*renovate: image=(?<depName>.*?)\\s+appVersion:\\s*[\"']?(?<currentValue>[\\w+\\.\\-]*)"
]
}
]
}
8 changes: 5 additions & 3 deletions .github/workflows/release-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,18 @@ jobs:
fetch-depth: 0

- name: Configure Git
env:
GITHUB_TOKEN: "${{ secrets.ELEMENT_BOT_TOKEN }}"
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Install Helm
uses: azure/setup-helm@v3
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.5.0
env:
CR_TOKEN: "${{ secrets.ELEMENT_BOT_TOKEN }}"
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_SKIP_EXISTING: true

4 changes: 2 additions & 2 deletions charts/element-call/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ type: application

# This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.1.3

version: "0.1.3"
# This version number should be incremented each time you make changes
# to the application.
# renovate: image=ghcr.io/vector-im/element-call
appVersion: "v0.3.13"
2 changes: 1 addition & 1 deletion charts/element-call/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ image:
repository: ghcr.io/vector-im/element-call
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
tag: "v0.3.13"

imagePullSecrets: []
nameOverride: ""
Expand Down
1 change: 1 addition & 0 deletions charts/ghost/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ maintainers:
- name: Element SRE Team

version: "0.82.0"
# renovate: image=ghost
appVersion: "5.38.0-alpine"
6 changes: 0 additions & 6 deletions renovate.json

This file was deleted.

0 comments on commit 064993d

Please sign in to comment.