Skip to content

Commit 9fa843a

Browse files
authored
fix: image release path (#806)
* fix: image release path Signed-off-by: Tadas Sutkaitis <[email protected]> * update k8s versions Signed-off-by: Tadas Sutkaitis <[email protected]> * fix typo Signed-off-by: Tadas Sutkaitis <[email protected]> --------- Signed-off-by: Tadas Sutkaitis <[email protected]>
1 parent 68643f6 commit 9fa843a

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ jobs:
109109
matrix:
110110
network-driver: [calico, cilium]
111111
kubernetes-version:
112-
- 1.31.12
113-
- 1.32.8
114-
- 1.33.4
115-
- 1.34.0
112+
- 1.31.13
113+
- 1.32.9
114+
- 1.33.5
115+
- 1.34.1
116116
concurrency:
117117
group: sonobuoy-${{ matrix.kubernetes-version }}-${{ matrix.network-driver }}-${{ github.event.pull_request.number }}
118118
cancel-in-progress: true
@@ -129,16 +129,15 @@ jobs:
129129
- uses: dev-hanz-ops/install-gh-cli-action@af38ce09b1ec248aeb08eea2b16bbecea9e059f8 # v0.2.1
130130
with:
131131
gh-cli-version: 2.78.0
132-
- id: image-info
132+
- id: tag-info
133133
run: |
134134
TAG_NAME=$(gh release list --repo vexxhost/capo-image-elements \
135-
--limit 100 \
135+
--limit 10 \
136136
--exclude-pre-releases \
137137
--exclude-drafts \
138-
--json name,publishedAt \
139-
--jq '([.[] | select(.name | startswith("ubuntu-minimal-jammy-${{ matrix.kubernetes-version }}"))] | sort_by(.publishedAt) | last | .name)')
138+
--json name,isLatest \
139+
--jq '.[] | select(.isLatest == true) | .name')
140140
141-
echo "file=$TAG_NAME.qcow2" >> $GITHUB_OUTPUT
142141
echo "name=$TAG_NAME" >> $GITHUB_OUTPUT
143142
env:
144143
GH_TOKEN: ${{ github.token }}
@@ -151,7 +150,7 @@ jobs:
151150
152151
enable_plugin magnum https://review.opendev.org/openstack/magnum refs/changes/10/949110/2
153152
# TODO(mnaser): fix this when we have the matrix
154-
MAGNUM_GUEST_IMAGE_URL=https://github.com/vexxhost/capo-image-elements/releases/download/${{ steps.image-info.outputs.name }}/${{ steps.image-info.outputs.file }}
153+
MAGNUM_GUEST_IMAGE_URL=https://github.com/vexxhost/capo-image-elements/releases/download/${{ steps.tag-info.outputs.name }}/ubuntu-22.04-v${{ matrix.kubernetes-version }}.qcow2
155154
156155
enable_plugin manila https://github.com/openstack/manila
157156
MANILA_ENABLED_BACKENDS=generic
@@ -192,7 +191,7 @@ jobs:
192191
env:
193192
OS_CLOUD: devstack
194193
NETWORK_DRIVER: ${{ matrix.network-driver }}
195-
IMAGE_NAME: ${{ steps.image-info.outputs.name }}
194+
IMAGE_NAME: ubuntu-22.04-v${{ matrix.kubernetes-version }}
196195
KUBE_TAG: v${{ matrix.kubernetes-version }}
197196
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
198197
if: ${{ always() }}

0 commit comments

Comments
 (0)