Skip to content

Commit

Permalink
Merge branch 'main' into updatecli_e1402b6d8d2de8d5cb6b5781288018523d…
Browse files Browse the repository at this point in the history
…ca37047a42e257b49476af91f62e37
  • Loading branch information
lemeurherve authored Sep 7, 2023
2 parents 2054228 + abcf04c commit 5f011dd
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3
# Needed for mirrorbits-parent subchart dependencies
- name: Add jenkins-infra Helm repository
run: helm repo add jenkins-infra https://jenkins-infra.github.io/helm-charts
- name: Run chart-releaser
uses: helm/chart-releaser-action@be16258da8010256c6e82849661221415f031968 # v1.5.0
env:
Expand Down
1 change: 1 addition & 0 deletions charts/mirrorbits-parent/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
charts/
4 changes: 2 additions & 2 deletions charts/mirrorbits-parent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: mirrorbits-parent
description: A mirrorbits parent chart for Kubernetes
type: application
version: 0.0.1
version: 0.0.3
dependencies:
- name: mirrorbits-lite
condition: mirrorbits-lite.enabled
Expand All @@ -15,4 +15,4 @@ dependencies:
- name: rsyncd
condition: rsyncd.enabled
repository: https://jenkins-infra.github.io/helm-charts
version: 0.0.2
version: 0.0.3
77 changes: 77 additions & 0 deletions updatecli/updatecli.d/mirrorbits-parent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Bump `mirrorbits-parent` subchart versions

scms:
default:
kind: github
spec:
user: "{{ .github.user }}"
email: "{{ .github.email }}"
owner: "{{ .github.owner }}"
repository: "{{ .github.repository }}"
token: "{{ requiredEnv .github.token }}"
username: "{{ .github.username }}"
branch: "{{ .github.branch }}"

sources:
lastMirrorbitsLiteChartVersion:
kind: helmchart
name: get last mirrorbits-lite chart version
spec:
url: https://jenkins-infra.github.io/helm-charts
name: mirrorbits-lite
lastHttpdChartVersion:
kind: helmchart
name: get last httpd chart version
spec:
url: https://jenkins-infra.github.io/helm-charts
name: httpd
lastRsyncdChartVersion:
kind: helmchart
name: get last chart version
spec:
url: https://jenkins-infra.github.io/helm-charts
name: rsyncd

targets:
updateMirrorbitsLite:
name: Update mirrorbits-lite subchart version
sourceid: lastMirrorbitsLiteChartVersion
kind: helmchart
spec:
name: charts/mirrorbits-parent
file: Chart.yaml
key: $.dependencies[0].version
versionincrement: patch
scmid: default
updateHttpd:
name: Update httpd subchart version
sourceid: lastHttpdChartVersion
kind: helmchart
spec:
name: charts/mirrorbits-parent
file: Chart.yaml
key: $.dependencies[1].version
versionincrement: patch
scmid: default
updateRsyncd:
name: Update rsyncd subchart version
sourceid: lastRsyncdChartVersion
kind: helmchart
spec:
name: charts/mirrorbits-parent
file: Chart.yaml
key: $.dependencies[2].version
versionincrement: patch
scmid: default

actions:
default:
kind: github/pullrequest
scmid: default
title: Bump `mirrorbits-parent` subchart versions
spec:
labels:
- dependencies
- mirrorbits-lite
- httpd
- rsyncd

0 comments on commit 5f011dd

Please sign in to comment.