From ef68e09353ddca379cff4a6deacfa2a6b4649f65 Mon Sep 17 00:00:00 2001 From: Thomas Flament Date: Mon, 13 Apr 2026 17:05:39 +0200 Subject: [PATCH] ci: push cloudserver-dashboards artifact on every CI build Today cloudserver-dashboards is published only from release.yaml on tagged releases. CI commits build and push cloudserver images but skip the dashboards artifact, which breaks downstream deploys that pull dashboards by commit SHA (cf. scality/backbeat#2697). Push the dashboards OCI artifact from the tests.yaml build job tagged by github.sha, in addition to the existing release path. Issue: CLDSRV-889 --- .github/workflows/tests.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 2a13f2ee93..52bf694835 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -241,6 +241,20 @@ jobs: cache-from: type=gha,scope=mongodb cache-to: type=gha,mode=max,scope=mongodb + - name: Install Oras + run: | + curl -L https://github.com/oras-project/oras/releases/download/v${ORAS_VERSION}/oras_${ORAS_VERSION}_linux_amd64.tar.gz | \ + tar -xz -C /usr/local/bin oras + env: + ORAS_VERSION: 1.2.2 + + - name: Push dashboards + run: | + oras push ghcr.io/${{ github.repository }}/${{ github.event.repository.name }}-dashboards:${{ github.sha }} \ + dashboard.json:application/grafana-dashboard+json \ + alerts.yaml:application/prometheus-alerts+yaml + working-directory: monitoring + multiple-backend: runs-on: ubuntu-24.04 needs: build