Skip to content

Commit 569a09c

Browse files
committed
Tc
1 parent 5f04a53 commit 569a09c

File tree

1 file changed

+38
-4
lines changed

1 file changed

+38
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,12 @@ jobs:
177177
minikube kubectl -- get pods -o wide
178178
( make VERBOSE=1 _check_affinity && ( echo "FAILED: negative test succeeded with cni='${CNI}' nodes='${NODES}' when it should have failed!" && exit 1 ) ) || true
179179
180-
docker_build_test_publish:
181-
needs: [check_unit, check_cni_example]
182-
runs-on: ubuntu-22.04
180+
docker_tests:
181+
runs-on: ${{ matrix.runs-on }}
182+
strategy:
183+
fail-fast: false
184+
matrix:
185+
runs-on: [ ubuntu-24.04, ubuntu-24.04-arm ]
183186
steps:
184187
- name: "Checkout sfunnel"
185188
uses: actions/checkout@v4
@@ -206,7 +209,7 @@ jobs:
206209
echo "Fix mess with tags in actions/checkout..."
207210
git fetch -f && git fetch -f --tags
208211
209-
docker buildx build --platform ${PLATFORMS} -t sfunnel --build-arg VERSION="$(git describe)" --build-arg COMMIT="${GITHUB_SHA}" --load -f docker/Dockerfile .
212+
docker buildx build -t sfunnel --build-arg VERSION="$(git describe)" --build-arg COMMIT="${GITHUB_SHA}" --load -f docker/Dockerfile .
210213
211214
- name: "[TEST] Run container without env. nor file. Should fail..."
212215
run: |
@@ -428,6 +431,37 @@ jobs:
428431
exit 1
429432
fi
430433
434+
docker_build_publish:
435+
needs: [check_unit, check_cni_example, docker_tests]
436+
runs-on: ubuntu-22.04
437+
steps:
438+
- name: "Checkout sfunnel"
439+
uses: actions/checkout@v4
440+
with:
441+
path: sfunnel
442+
fetch-depth: 0
443+
fetch-tags: 1
444+
445+
- name: "Set up Docker buildx"
446+
uses: docker/setup-buildx-action@v3
447+
448+
- name: "Login to GitHub Container Registry (ghcr.io)"
449+
uses: docker/login-action@v3
450+
with:
451+
registry: ghcr.io
452+
username: ${{github.actor}}
453+
password: ${{secrets.GITHUB_TOKEN}}
454+
455+
- name: "Build container"
456+
run: |
457+
#Cross-build
458+
cd sfunnel
459+
460+
echo "Fix mess with tags in actions/checkout..."
461+
git fetch -f && git fetch -f --tags
462+
463+
docker buildx build --platform ${PLATFORMS} -t sfunnel --build-arg VERSION="$(git describe)" --build-arg COMMIT="${GITHUB_SHA}" --load -f docker/Dockerfile .
464+
431465
- name: "Push to ghcr"
432466
run: |
433467
cd sfunnel

0 commit comments

Comments
 (0)