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 ab39181
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,32 @@ jobs:
echo "${VERSION}"
make build-${{ matrix.dist }}
### e2e tests ###
build-gpu-operator-bundle-image:
if: github.ref == 'refs/heads/main' # Runs only if the event is from a main branch commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Check out code
- name: Calculate build vars
id: vars
run: |
echo "BRANCH_NAME=${GITHUB_REF_NAME}" >> $GITHUB_ENV
- 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:${{ env.BRANCH_NAME }}-latest"
VERSION: ""
DEFAULT_CHANNEL: "stable"
CHANNELS: "stable"
run: |
make push-bundle-image
## e2e tests ###
e2e-tests-containerd:
needs: [build-gpu-operator, build-gpu-operator-validator]
runs-on: linux-amd64-cpu4
Expand Down

0 comments on commit ab39181

Please sign in to comment.