diff --git a/.github/workflows/chart-update.yaml b/.github/workflows/chart-update.yaml new file mode 100644 index 00000000..2096c6e2 --- /dev/null +++ b/.github/workflows/chart-update.yaml @@ -0,0 +1,46 @@ +--- +name: "chart-update" + +on: + schedule: + - cron: "0 7 * * 1-5" + + workflow_dispatch: + inputs: + update-strategy: + description: "Update strategy to use. Valid values are 'patch', 'minor' or 'major'" + type: choice + options: + - "patch" + - "minor" + - "major" + required: true + excluded-dependencies: + description: "Comma-separated list of dependencies to exclude from the update (i.e. 'dependency1,dependency2,dependency3')" + type: string + required: false + default: "" + dry-run: + description: "Activate dry-run mode" + type: boolean + required: false + default: true + +jobs: + + chart-update-schedule: + if: ${{ github.event_name == 'schedule' }} + strategy: + matrix: + update-strategy: ["major", "minor"] + uses: camptocamp/devops-stack/.github/workflows/modules-chart-update.yaml@main + with: + update-strategy: ${{ matrix.update-strategy }} + + chart-update-manual: + if: ${{ github.event_name == 'workflow_dispatch' }} + uses: camptocamp/devops-stack/.github/workflows/modules-chart-update.yaml@main + with: + update-strategy: ${{ inputs.update-strategy }} + excluded-dependencies: ${{ inputs.excluded-dependencies }} + dry-run: ${{ inputs.dry-run }} diff --git a/README.adoc b/README.adoc index e53d5d9f..e8b8c027 100644 --- a/README.adoc +++ b/README.adoc @@ -1,6 +1,7 @@ = devops-stack-module-thanos // Document attributes to replace along the document -:chart-version: 12.6.3 +:thanos-chart-version: 12.6.3 +:original-repo-url: https://github.com/bitnami/charts/tree/master/bitnami/thanos A https://devops-stack.io[DevOps Stack] module to deploy and configure https://thanos.io[Thanos]. @@ -9,7 +10,7 @@ The Thanos chart used by this module is shipped in this repository as well, in o [cols="1,1,1",options="autowidth,header"] |=== |Current Chart Version |Original Repository |Default Values -|*{chart-version}* |https://github.com/bitnami/charts/tree/master/bitnami/thanos[Chart] |https://artifacthub.io/packages/helm/bitnami/thanos/{chart-version}?modal=values[`values.yaml`] +|*{thanos-chart-version}* |{original-repo-url}[Chart] |https://artifacthub.io/packages/helm/bitnami/thanos/{chart-version}?modal=values[`values.yaml`] |=== *Since this module is meant to be instantiated using its variants, the usage documentation is available in each variant* ( xref:./aks/README.adoc[AKS] | xref:./eks/README.adoc[EKS] | xref:./kind/README.adoc[KinD] ). diff --git a/charts/thanos/Chart.yaml b/charts/thanos/Chart.yaml index 9b21fd2b..df94187a 100644 --- a/charts/thanos/Chart.yaml +++ b/charts/thanos/Chart.yaml @@ -4,5 +4,5 @@ name: "thanos" version: "0" dependencies: - name: "thanos" - version: "^12" + version: "12.6.3" repository: "https://charts.bitnami.com/bitnami"