Skip to content

Commit be95a15

Browse files
committed
Merge remote-tracking branch 'downstream/main' into upstream-branch
2 parents 6d80d27 + bb86a94 commit be95a15

9 files changed

+1086
-207
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# This workflow build and push test images to https://quay.io/repository/opendatahub/distributed-workloads-tests for rhoai release branches
2+
3+
4+
name: Build and Push test images for rhoai releases
5+
on:
6+
push:
7+
branches:
8+
- 'rhoai-*'
9+
paths:
10+
- 'go.mod'
11+
- 'go.sum'
12+
- 'tests/**'
13+
- 'images/tests/**'
14+
workflow_dispatch:
15+
inputs:
16+
image-tag:
17+
description: 'Image tag to use for the rhoai release which targets the corresponding release branch (E.g: 2.17)'
18+
required: true
19+
20+
jobs:
21+
build-and-push-test-images-for-releases:
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- name: Set IMAGE_TAG
28+
run: |
29+
if [ -n "${{ github.event.inputs.image-tag }}" ]; then
30+
echo "IMAGE_TAG=${{ github.event.inputs.image-tag }}" >> $GITHUB_ENV
31+
else
32+
echo "IMAGE_TAG=$(echo ${GITHUB_REF##*/} | sed -E 's/rhoai-([0-9]+\.[0-9]+)/\1/')" >> $GITHUB_ENV
33+
fi
34+
35+
- name: Login to Quay.io
36+
id: podman-login-quay
37+
run: podman login --username ${{ secrets.QUAY_ODH_DW_TESTS_USERNAME }} --password ${{ secrets.QUAY_ODH_DW_TESTS_TOKEN }} quay.io
38+
39+
- name: Build test image
40+
run: make build-test-image E2E_TEST_IMAGE_VERSION=$IMAGE_TAG
41+
42+
- name: Push test image
43+
run: make push-test-image E2E_TEST_IMAGE_VERSION=$IMAGE_TAG
44+
45+
- name: Logout from Quay.io
46+
if: always() && steps.podman-login-quay.outcome == 'success'
47+
run: podman logout quay.io

.tekton/ray-rocm-push.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,3 +475,4 @@ spec:
475475
secret:
476476
secretName: '{{ git_auth_secret }}'
477477
status: {}
478+
#restart

0 commit comments

Comments
 (0)