Skip to content

Commit 758c6a4

Browse files
committed
Migrate OLM bundle image CI job from Gitlab to Github
Signed-off-by: shiva kumar <[email protected]>
1 parent 3115dab commit 758c6a4

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

Diff for: .github/workflows/ci.yaml

+32-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,38 @@ jobs:
210210
echo "${VERSION}"
211211
make build-${{ matrix.dist }}
212212
213-
### e2e tests ###
213+
build-gpu-operator-bundle-image:
214+
if: github.ref == 'refs/heads/main' # Runs only if the event is from a main branch commit
215+
runs-on: ubuntu-latest
216+
steps:
217+
- uses: actions/checkout@v4
218+
name: Check out code
219+
- name: Calculate build vars
220+
id: vars
221+
run: |
222+
# echo "COMMIT_SHORT_SHA=${GITHUB_SHA:0:8}" >> $GITHUB_ENV
223+
echo "BRANCH_NAME=${GITHUB_REF_NAME}" >> $GITHUB_ENV
224+
- name: Set up QEMU
225+
uses: docker/setup-qemu-action@v3
226+
with:
227+
image: tonistiigi/binfmt:master
228+
- name: Set up Docker Buildx
229+
uses: docker/setup-buildx-action@v3
230+
- name: Login to GitHub Container Registry
231+
uses: docker/login-action@v3
232+
with:
233+
registry: ghcr.io
234+
username: ${{ github.actor }}
235+
password: ${{ secrets.GITHUB_TOKEN }}
236+
- name: Build bundle-image
237+
env:
238+
BUNDLE_IMAGE: "ghcr.io/nvidia/gpu-operator/gpu-operator-bundle:${{ env.BRANCH_NAME }}-latest"
239+
DEFAULT_CHANNEL: "stable"
240+
CHANNELS: "stable"
241+
run: |
242+
make push-bundle-image
243+
244+
## e2e tests ###
214245
e2e-tests-containerd:
215246
needs: [build-gpu-operator, build-gpu-operator-validator]
216247
runs-on: linux-amd64-cpu4

0 commit comments

Comments
 (0)