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 beff077 commit ae0e56c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ name: CI
on:
push:
branches:
- "pull-request/[0-9]+"
- main
- release-*
# - "pull-request/[0-9]+"
# - main
# - release-*
- bundleimage

jobs:
### Configuration checks ###
Expand Down Expand Up @@ -316,8 +317,8 @@ jobs:
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]
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/bundleimage' }} # 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
Expand All @@ -330,7 +331,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build bundle-image
env:
BUNDLE_IMAGE: "ghcr.io/nvidia/gpu-operator/gpu-operator-bundle:${GITHUB_REF_NAME}-latest"
BUNDLE_IMAGE: "ghcr.io/nvidia/gpu-operator/gpu-operator-bundle:${github.ref_name}-latest"
VERSION: ""
DEFAULT_CHANNEL: "stable"
CHANNELS: "stable"
Expand Down

0 comments on commit ae0e56c

Please sign in to comment.