Skip to content

Commit 31be0c7

Browse files
[no-relnote] set workflow_dispatch to use get-latest-images.sh
Signed-off-by: Carlos Eduardo Arango Gutierrez <[email protected]>
1 parent 7d2aaef commit 31be0c7

File tree

2 files changed

+9
-37
lines changed

2 files changed

+9
-37
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
needs: [variables, image-builds]
5353
uses: ./.github/workflows/e2e-tests.yaml
5454
with:
55-
operator_image: ${{ needs.variables.outputs.operator_image_base }}
55+
operator_image: ${{ needs.variables.outputs.operator_image }}
5656
operator_version: ${{ needs.variables.outputs.operator_version }}
5757
secrets: inherit
5858

.github/workflows/forward-compatibility.yaml

Lines changed: 8 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,7 @@ name: Forward Compatibility
1717
on:
1818
schedule:
1919
- cron: '0 2 * * 1' # Weekly on Monday at 2 AM UTC
20-
workflow_dispatch:
21-
inputs:
22-
toolkit_image:
23-
description: 'Override container-toolkit image'
24-
required: false
25-
type: string
26-
device_plugin_image:
27-
description: 'Override device-plugin image'
28-
required: false
29-
type: string
30-
mig_manager_image:
31-
description: 'Override mig-manager image'
32-
required: false
33-
type: string
20+
workflow_dispatch: # Manual trigger
3421

3522
concurrency:
3623
group: ${{ github.workflow }}-${{ github.ref }}
@@ -59,32 +46,17 @@ jobs:
5946
env:
6047
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6148
run: |
62-
# Use workflow_dispatch inputs if provided, otherwise fetch latest
63-
if [[ -n "${{ inputs.toolkit_image }}" ]]; then
64-
TOOLKIT="${{ inputs.toolkit_image }}"
65-
echo "::notice::Using provided toolkit image: ${TOOLKIT}"
66-
else
67-
echo "::notice::Fetching latest container-toolkit image..."
68-
TOOLKIT=$(.github/scripts/get-latest-images.sh toolkit)
69-
fi
49+
# Fetch latest images from component repositories
50+
echo "::notice::Fetching latest container-toolkit image..."
51+
TOOLKIT=$(.github/scripts/get-latest-images.sh toolkit)
7052
echo "toolkit_image=${TOOLKIT}" >> $GITHUB_OUTPUT
7153
72-
if [[ -n "${{ inputs.device_plugin_image }}" ]]; then
73-
DEVICE_PLUGIN="${{ inputs.device_plugin_image }}"
74-
echo "::notice::Using provided device-plugin image: ${DEVICE_PLUGIN}"
75-
else
76-
echo "::notice::Fetching latest device-plugin image..."
77-
DEVICE_PLUGIN=$(.github/scripts/get-latest-images.sh device-plugin)
78-
fi
54+
echo "::notice::Fetching latest device-plugin image..."
55+
DEVICE_PLUGIN=$(.github/scripts/get-latest-images.sh device-plugin)
7956
echo "device_plugin_image=${DEVICE_PLUGIN}" >> $GITHUB_OUTPUT
8057
81-
if [[ -n "${{ inputs.mig_manager_image }}" ]]; then
82-
MIG_MANAGER="${{ inputs.mig_manager_image }}"
83-
echo "::notice::Using provided mig-manager image: ${MIG_MANAGER}"
84-
else
85-
echo "::notice::Fetching latest mig-manager image..."
86-
MIG_MANAGER=$(.github/scripts/get-latest-images.sh mig-manager)
87-
fi
58+
echo "::notice::Fetching latest mig-manager image..."
59+
MIG_MANAGER=$(.github/scripts/get-latest-images.sh mig-manager)
8860
echo "mig_manager_image=${MIG_MANAGER}" >> $GITHUB_OUTPUT
8961
9062
echo "::notice::=== Forward Compatibility Test Configuration ==="

0 commit comments

Comments
 (0)