Skip to content

Commit

Permalink
Migrate OLM bundle image CI job from Gitlab to Github
Browse files Browse the repository at this point in the history
Signed-off-by: shiva kumar <[email protected]>
  • Loading branch information
shivakunv committed Feb 6, 2025
1 parent 3115dab commit e6f976a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e6f976a

Please sign in to comment.