diff --git a/.github/configs/updatecli.d/loki.yaml b/.github/configs/updatecli.d/loki.yaml new file mode 100644 index 0000000..3452ab3 --- /dev/null +++ b/.github/configs/updatecli.d/loki.yaml @@ -0,0 +1,30 @@ +name: Bump dependency "loki" for Helm chart "meta-monitoring" +sources: + loki: + name: Get latest "loki" Helm chart version + kind: helmchart + spec: + name: loki + url: https://grafana.github.io/helm-charts + versionfilter: + kind: semver + pattern: '*' +conditions: + loki: + name: Ensure Helm chart dependency "loki" is specified + kind: yaml + spec: + file: charts/meta-monitoring/Chart.yaml + key: $.dependencies[0].name + value: loki + disablesourceinput: true +targets: + loki: + name: Bump Helm chart dependency "loki" for Helm chart "meta-monitoring" + kind: helmchart + spec: + file: Chart.yaml + key: $.dependencies[0].version + name: charts/meta-monitoring + versionincrement: none + sourceid: loki \ No newline at end of file diff --git a/.github/configs/updatecli.d/minio.yaml b/.github/configs/updatecli.d/minio.yaml new file mode 100644 index 0000000..0f7e4d2 --- /dev/null +++ b/.github/configs/updatecli.d/minio.yaml @@ -0,0 +1,30 @@ +name: Bump dependency "minio" for Helm chart "meta-monitoring" +sources: + minio: + name: Get latest "minio" Helm chart version + kind: helmchart + spec: + name: minio + url: https://charts.min.io + versionfilter: + kind: semver + pattern: '*' +conditions: + minio: + name: Ensure Helm chart dependency "minio" is specified + kind: yaml + spec: + file: charts/meta-monitoring/Chart.yaml + key: $.dependencies[4].name + value: minio + disablesourceinput: true +targets: + minio: + name: Bump Helm chart dependency "minio" for Helm chart "meta-monitoring" + kind: helmchart + spec: + file: Chart.yaml + key: $.dependencies[4].version + name: charts/meta-monitoring + versionincrement: none + sourceid: minio \ No newline at end of file diff --git a/.github/configs/updatecli.d/tempo-distributed b/.github/configs/updatecli.d/tempo-distributed new file mode 100644 index 0000000..7bdf436 --- /dev/null +++ b/.github/configs/updatecli.d/tempo-distributed @@ -0,0 +1,30 @@ +name: Bump dependency "tempo-distributed" for Helm chart "meta-monitoring" +sources: + tempo-distributed: + name: Get latest "tempo-distributed" Helm chart version + kind: helmchart + spec: + name: tempo-distributed + url: https://grafana.github.io/helm-charts + versionfilter: + kind: semver + pattern: '*' +conditions: + tempo-distributed: + name: Ensure Helm chart dependency "tempo-distributed" is specified + kind: yaml + spec: + file: charts/meta-monitoring/Chart.yaml + key: $.dependencies[3].name + value: tempo-distributed + disablesourceinput: true +targets: + tempo-distributed: + name: Bump Helm chart dependency "tempo-distributed" for Helm chart "meta-monitoring" + kind: helmchart + spec: + file: Chart.yaml + key: $.dependencies[3].version + name: charts/meta-monitoring + versionincrement: none + sourceid: tempo-distributed \ No newline at end of file diff --git a/.github/workflows/check-for-dependency-updates.yaml b/.github/workflows/check-for-dependency-updates.yaml index a133920..e87a196 100644 --- a/.github/workflows/check-for-dependency-updates.yaml +++ b/.github/workflows/check-for-dependency-updates.yaml @@ -16,6 +16,38 @@ env: UPDATECLI_GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" jobs: + updateLoki: + name: Update loki subchart + runs-on: "ubuntu-latest" + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install Updatecli + uses: updatecli/updatecli-action@v2 + + - name: Run Updatecli + id: update-loki + run: | + updatecli apply --config ${UPDATECLI_CONFIG_DIR}/alloy.yaml + if ! git diff --exit-code > /dev/null; then + echo "changed=true" >> "${GITHUB_OUTPUT}" + fi + + - name: Create pull request + if: steps.update-loki.outputs.changed == 'true' + uses: peter-evans/create-pull-request@v5 + with: + title: "[dependency] Update loki" + body: "Updates the loki subchart" + base: main + author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>" + committer: "GitHub " + commit-message: Update loki + labels: dependencies + branch: chore/update-loki + delete-branch: true + updateGrafanaAlloy: name: Update Grafana Alloy subchart runs-on: "ubuntu-latest" @@ -34,10 +66,6 @@ jobs: echo "changed=true" >> "${GITHUB_OUTPUT}" fi - - name: Install Helm - if: steps.update-grafana-alloy.outputs.changed == 'true' - uses: azure/setup-helm@v3 - - name: Create pull request if: steps.update-grafana-alloy.outputs.changed == 'true' uses: peter-evans/create-pull-request@v5 @@ -83,3 +111,68 @@ jobs: labels: dependencies branch: chore/update-mimir-distributed delete-branch: true + + updateTempoDistributed: + name: Update Tempo Distributed subchart + runs-on: "ubuntu-latest" + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install Updatecli + uses: updatecli/updatecli-action@v2 + + - name: Run Updatecli + id: update-tempo-distributed + run: | + updatecli apply --config ${UPDATECLI_CONFIG_DIR}/tempo-distributed.yaml + if ! git diff --exit-code > /dev/null; then + echo "changed=true" >> "${GITHUB_OUTPUT}" + fi + + - name: Create pull request + if: steps.update-tempo-distributed.outputs.changed == 'true' + uses: peter-evans/create-pull-request@v5 + with: + title: "[dependency] Update tempo Distributed" + body: "Updates the tempo Distributed subchart" + base: main + author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>" + committer: "GitHub " + commit-message: Update Tempo Distributed + labels: dependencies + branch: chore/update-tempo-distributed + delete-branch: true + + + updateMinio: + name: Update minio subchart + runs-on: "ubuntu-latest" + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install Updatecli + uses: updatecli/updatecli-action@v2 + + - name: Run Updatecli + id: update-minio + run: | + updatecli apply --config ${UPDATECLI_CONFIG_DIR}/minio.yaml + if ! git diff --exit-code > /dev/null; then + echo "changed=true" >> "${GITHUB_OUTPUT}" + fi + + - name: Create pull request + if: steps.update-minio.outputs.changed == 'true' + uses: peter-evans/create-pull-request@v5 + with: + title: "[dependency] Update minio" + body: "Updates the minio subchart" + base: main + author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>" + committer: "GitHub " + commit-message: Update minio + labels: dependencies + branch: chore/update-minio + delete-branch: true