10
10
workflow_dispatch :
11
11
12
12
jobs :
13
- prepare-matrix :
13
+ prepare-matrix-buster :
14
14
runs-on : ubuntu-latest
15
15
name : List perl versions
16
16
outputs :
23
23
since-perl : ' 5.8'
24
24
with-devel : ' true'
25
25
26
+ # bookworm base images only exist for 5.36 and newer.
27
+ prepare-matrix-bookworm :
28
+ runs-on : ubuntu-latest
29
+ name : List perl versions
30
+ outputs :
31
+ perl-versions : ${{ steps.action.outputs.perl-versions }}
32
+ steps :
33
+ - name : Perl versions action step
34
+ id : action
35
+ uses : perl-actions/perl-versions@main
36
+ with :
37
+ since-perl : ' 5.36'
38
+ with-devel : ' true'
39
+
26
40
latest-build :
27
41
name : " Build latest"
28
42
runs-on : ubuntu-latest
@@ -43,18 +57,38 @@ jobs:
43
57
buildargs : BASE=buster
44
58
tags : " latest,${{ matrix.debian-version }}"
45
59
46
- build :
47
- name : " Build versions"
60
+ build-buster :
61
+ name : " Build versions for buster "
48
62
runs-on : ubuntu-latest
49
63
needs :
50
- - prepare-matrix
64
+ - prepare-matrix-buster
51
65
52
66
strategy :
53
67
fail-fast : false
54
68
matrix :
55
- perl-version : ${{ fromJson (needs.prepare-matrix.outputs.perl-versions) }}
56
- debian-version : [buster,bookworm]
69
+ perl-version : ${{ fromJson (needs.prepare-matrix-buster.outputs.perl-versions) }}
70
+ steps :
71
+ - uses : actions/checkout@v4
72
+ - name : Publish to Registry
73
+ uses : elgohr/Publish-Docker-Github-Action@v5
74
+ with :
75
+ name : ${{ secrets.DOCKER_REPO }}
76
+ username : ${{ secrets.DOCKER_USERNAME }}
77
+ password : ${{ secrets.DOCKER_GITHUB_TOKEN }}
78
+ dockerfile : Dockerfile
79
+ buildargs : BASE=${{ matrix.perl-version }}-buster,CPANOUTDATED=${{ matrix.perl-version != '5.8' }}
80
+ tags : " ${{ matrix.perl-version }}-buster,${{ matrix-perl-version }}"
57
81
82
+ build-bookworm :
83
+ name : " Build versions for bookworm"
84
+ runs-on : ubuntu-latest
85
+ needs :
86
+ - prepare-matrix-bookworm
87
+
88
+ strategy :
89
+ fail-fast : false
90
+ matrix :
91
+ perl-version : ${{ fromJson (needs.prepare-matrix-bookworm.outputs.perl-versions) }}
58
92
steps :
59
93
- uses : actions/checkout@v4
60
94
- name : Publish to Registry
64
98
username : ${{ secrets.DOCKER_USERNAME }}
65
99
password : ${{ secrets.DOCKER_GITHUB_TOKEN }}
66
100
dockerfile : Dockerfile
67
- buildargs : BASE=${{ matrix.perl-version }}-${{ matrix.debian-version }} ,CPANOUTDATED=${{ matrix.perl-version != '5.8' }}
68
- tags : " ${{ matrix.perl-version }}-${{ matrix.debian-version }}${{ matrix.debian-version=='buster' && format(',{0}',matrix.perl-version) || '' }} "
101
+ buildargs : BASE=${{ matrix.perl-version }}-bookworm ,CPANOUTDATED=${{ matrix.perl-version != '5.8' }}
102
+ tags : " ${{ matrix.perl-version }}-bookworm "
0 commit comments