Skip to content

Commit 897c4a9

Browse files
committed
ci/build: pin qemu version
1 parent 233c866 commit 897c4a9

File tree

1 file changed

+52
-49
lines changed

1 file changed

+52
-49
lines changed

.github/workflows/build.yml

+52-49
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ name: Build images
33
on:
44
push:
55
branches:
6-
- main
6+
- main
77
paths-ignore:
8-
- '**.md'
8+
- '**.md'
99
pull_request:
1010
branches:
11-
- main
11+
- main
1212
paths-ignore:
13-
- '**.md'
13+
- '**.md'
1414
schedule:
15-
- cron: '20 2 * * SAT'
15+
- cron: '20 2 * * SAT'
1616

1717
concurrency:
1818
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -28,50 +28,53 @@ jobs:
2828
strategy:
2929
matrix:
3030
release:
31-
- bullseye
32-
- bookworm
31+
- bullseye
32+
- bookworm
3333
context:
34-
- debian-build
35-
- debian-slim
34+
- debian-build
35+
- debian-slim
3636

3737
steps:
38-
-
39-
name: Checkout
40-
uses: actions/checkout@v4
41-
with:
42-
fetch-depth: 2
43-
-
44-
name: Extract metadata
45-
id: docker_meta
46-
uses: docker/metadata-action@v5
47-
with:
48-
tags: |
49-
${{ matrix.release }}
50-
type=schedule,prefix=${{ matrix.release }}-,pattern={{date 'YYYYMMDD'}}
51-
type=sha,prefix=${{ matrix.release }}-,format=short
52-
images: ghcr.io/pgils/${{ matrix.context }}
53-
-
54-
name: Set up QEMU
55-
uses: docker/setup-qemu-action@v3
56-
-
57-
name: Set up Docker Buildx
58-
uses: docker/setup-buildx-action@v3
59-
-
60-
name: Login to GitHub Container Registry
61-
if: ${{ github.ref == 'refs/heads/main' }}
62-
uses: docker/login-action@v3
63-
with:
64-
registry: ghcr.io
65-
username: ${{ github.repository_owner }}
66-
password: ${{ secrets.GITHUB_TOKEN }}
67-
-
68-
name: Build and push
69-
uses: docker/build-push-action@v5
70-
with:
71-
context: ${{ matrix.context }}
72-
file: ${{ matrix.context }}/Containerfile
73-
build-args: "DEBIAN_VERSION=${{ matrix.release }}"
74-
platforms: linux/amd64,linux/arm64
75-
push: ${{ github.ref == 'refs/heads/main' }}
76-
tags: ${{ steps.docker_meta.outputs.tags }}
77-
labels: ${{ steps.docker_meta.outputs.labels }}
38+
39+
- name: Checkout
40+
uses: actions/checkout@v4
41+
with:
42+
fetch-depth: 2
43+
44+
- name: Extract metadata
45+
id: docker_meta
46+
uses: docker/metadata-action@v5
47+
with:
48+
tags: |
49+
${{ matrix.release }}
50+
type=schedule,prefix=${{ matrix.release }}-,pattern={{date 'YYYYMMDD'}}
51+
type=sha,prefix=${{ matrix.release }}-,format=short
52+
images: ghcr.io/pgils/${{ matrix.context }}
53+
54+
- name: Set up QEMU
55+
uses: docker/setup-qemu-action@v3
56+
with:
57+
platforms: linux/amd64,linux/arm64
58+
image: tonistiigi/binfmt:qemu-v8.1.5
59+
60+
- name: Set up Docker Buildx
61+
uses: docker/setup-buildx-action@v3
62+
63+
- name: Login to GitHub Container Registry
64+
if: ${{ github.ref == 'refs/heads/main' }}
65+
uses: docker/login-action@v3
66+
with:
67+
registry: ghcr.io
68+
username: ${{ github.repository_owner }}
69+
password: ${{ secrets.GITHUB_TOKEN }}
70+
71+
- name: Build and push
72+
uses: docker/build-push-action@v5
73+
with:
74+
context: ${{ matrix.context }}
75+
file: ${{ matrix.context }}/Containerfile
76+
build-args: "DEBIAN_VERSION=${{ matrix.release }}"
77+
platforms: linux/amd64,linux/arm64
78+
push: ${{ github.ref == 'refs/heads/main' }}
79+
tags: ${{ steps.docker_meta.outputs.tags }}
80+
labels: ${{ steps.docker_meta.outputs.labels }}

0 commit comments

Comments
 (0)