@@ -3,16 +3,16 @@ name: Build images
3
3
on :
4
4
push :
5
5
branches :
6
- - main
6
+ - main
7
7
paths-ignore :
8
- - ' **.md'
8
+ - ' **.md'
9
9
pull_request :
10
10
branches :
11
- - main
11
+ - main
12
12
paths-ignore :
13
- - ' **.md'
13
+ - ' **.md'
14
14
schedule :
15
- - cron : ' 20 2 * * SAT'
15
+ - cron : ' 20 2 * * SAT'
16
16
17
17
concurrency :
18
18
group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -28,50 +28,53 @@ jobs:
28
28
strategy :
29
29
matrix :
30
30
release :
31
- - bullseye
32
- - bookworm
31
+ - bullseye
32
+ - bookworm
33
33
context :
34
- - debian-build
35
- - debian-slim
34
+ - debian-build
35
+ - debian-slim
36
36
37
37
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-v7.0.0
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