From e6f976af4ce147d8ed6a634e69116e95a9d3b65f Mon Sep 17 00:00:00 2001 From: shiva kumar Date: Wed, 5 Feb 2025 18:43:41 +0530 Subject: [PATCH] Migrate OLM bundle image CI job from Gitlab to Github Signed-off-by: shiva kumar --- .github/workflows/ci.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5ece8c1af..ca66513b0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -314,3 +314,25 @@ jobs: name: nvidiadriver-e2e-test-logs path: ./logs/ retention-days: 15 + + push-gpu-operator-bundle-image: + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} # Runs only if the event is a push to the main branch + needs: [e2e-tests-containerd, e2e-tests-nvidiadriver] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + name: Check out code + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build bundle-image + env: + BUNDLE_IMAGE: "ghcr.io/nvidia/gpu-operator/gpu-operator-bundle:${{ github.ref_name }}-latest" + VERSION: "" + DEFAULT_CHANNEL: "stable" + CHANNELS: "stable" + run: | + make push-bundle-image