Skip to content

Commit 92a6974

Browse files
committed
github/workflows: Build x86 + arm64 Yetus images at once
Unfortunately the job matrix cannot be used to build Yetus image because the job that finishes last will overwrite the image pushed to dockerhub. Since only x86 runners are used to build this image, there is no need to complicate the handling of manifests. Instead, we can just build and push both images at once. The parallelism in this case is not critical at all. Signed-off-by: Renê de Souza Pinto <rene@renesp.com.br>
1 parent eb999fa commit 92a6974

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/buildyetusondemand.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ jobs:
3434
IMG_TAG: "0.15.1-eve-1"
3535
strategy:
3636
fail-fast: false
37-
matrix:
38-
arch: [amd64, arm64]
3937

4038
steps:
4139
- name: Starting Report
@@ -52,6 +50,8 @@ jobs:
5250
ref: ${{ github.event.pull_request.head.ref }}
5351
fetch-depth: 0
5452
persist-credentials: false
53+
- name: Set up Docker Buildx
54+
uses: docker/setup-buildx-action@v3
5555
- name: Login to Docker Hub
5656
if: ${{ env.REPO_NAME == 'lf-edge/eve' }}
5757
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
@@ -60,7 +60,7 @@ jobs:
6060
password: ${{ secrets.RELEASE_DOCKERHUB_TOKEN }}
6161
- name: Build and push Yetus image
6262
run: |
63-
docker buildx build --platform linux/${{ matrix.arch }} --push --tag ${{ env.IMG_NAME }}:${{ env.IMG_TAG }} tools/yetus
63+
docker buildx build --platform linux/amd64,linux/arm64 --push --tag ${{ env.IMG_NAME }}:${{ env.IMG_TAG }} tools/yetus
6464
- name: Post package report
6565
run: |
6666
echo Disk usage

0 commit comments

Comments
 (0)