Skip to content

Commit 4c15b9d

Browse files
committed
chore(capms): matrix builds
1 parent 27dfc0f commit 4c15b9d

File tree

2 files changed

+26
-13
lines changed

2 files changed

+26
-13
lines changed

.github/workflows/docker.yaml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ jobs:
4848
version: 12
4949
- name: ubuntu
5050
version: 24.04
51+
- name: capms
52+
version: 1.35.2
53+
apt_branch: "1.35"
54+
- name: capms
55+
version: 1.34.5
56+
apt_branch: "1.34"
57+
- name: capms
58+
version: 1.33.9
59+
apt_branch: "1.33"
5160

5261
steps:
5362
- name: Checkout
@@ -173,8 +182,8 @@ jobs:
173182
shell: bash
174183
run: ./prepare.sh capms-ubuntu
175184
env:
176-
SEMVER_MAJOR_MINOR: 1.34.5
177-
if: ${{ matrix.os.name == 'ubuntu' }}
185+
SEMVER_MAJOR_MINOR: ${{ matrix.os.version }}
186+
if: ${{ matrix.os.name == 'capms' }}
178187

179188
- name: Build docker image for capms
180189
uses: docker/bake-action@v6
@@ -185,12 +194,12 @@ jobs:
185194
no-cache: true
186195
set: _common.output+=type=registry
187196
env:
188-
KUBE_VERSION: 1.34.5
189-
KUBE_APT_BRANCH: v1.34
197+
KUBE_VERSION: ${{ matrix.os.version }}
198+
KUBE_APT_BRANCH: ${{ matrix.os.apt_branch }}
190199
OS_NAME: capms-ubuntu
191-
SEMVER_MAJOR_MINOR: 1.34.5
200+
SEMVER_MAJOR_MINOR: ${{ matrix.os.version }}
192201
SEMVER_PATCH: ${{ env.SEMVER_PATCH }}
193-
if: ${{ matrix.os.name == 'ubuntu' }}
202+
if: ${{ matrix.os.name == 'capms' }}
194203

195204
- name: Test and export docker image for capms
196205
run: |
@@ -199,9 +208,9 @@ jobs:
199208
env:
200209
IMG_PKG_COMMAND: dpkg -l
201210
OS_NAME: capms-ubuntu
202-
SEMVER_MAJOR_MINOR: 1.34.5
211+
SEMVER_MAJOR_MINOR: ${{ matrix.os.version }}
203212
SEMVER_PATCH: ${{ env.SEMVER_PATCH }}
204-
if: ${{ matrix.os.name == 'ubuntu' }}
213+
if: ${{ matrix.os.name == 'capms' }}
205214

206215
- name: Prepare build environment
207216
shell: bash

Makefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,16 @@ ubuntu: test binary
6666
OS_NAME=ubuntu OUTPUT_FOLDER="" SEMVER_MAJOR_MINOR=24.04 ./test.sh
6767

6868
.PHONY: capms
69-
capms: test ubuntu
70-
KUBE_VERSION=1.34.5 \
71-
KUBE_APT_BRANCH=v1.34 \
72-
SEMVER_MAJOR_MINOR=1.34.5 \
69+
capms:
70+
$(MAKE) capms-v1.34.5
71+
72+
.PHONY: capms-v%
73+
capms-v%: test ubuntu
74+
KUBE_VERSION=$@ \
75+
KUBE_APT_BRANCH=v$(shell echo $@ | cut -d . -f1-2) \
76+
SEMVER_MAJOR_MINOR=$@ \
7377
docker buildx bake --no-cache ubuntu-capms
74-
OS_NAME=capms-ubuntu OUTPUT_FOLDER="" SEMVER_MAJOR_MINOR=1.34.5 ./test.sh
78+
OS_NAME=capms-ubuntu OUTPUT_FOLDER="" SEMVER_MAJOR_MINOR=$@ ./test.sh
7579

7680
.PHONY: firewall
7781
firewall: test binary

0 commit comments

Comments
 (0)