File tree Expand file tree Collapse file tree 4 files changed +24
-11
lines changed Expand file tree Collapse file tree 4 files changed +24
-11
lines changed Original file line number Diff line number Diff line change 9
9
- ' .github/workflows/publish-2.7.yml'
10
10
- ' 2.7/**'
11
11
schedule :
12
- - cron : ' 0 8 * * 2,6'
12
+ - cron : ' 0 9 * * 2,6'
13
+ - cron : ' 30 6 1 * *'
13
14
14
15
jobs :
15
16
publish :
32
33
with :
33
34
image : coatldev/python
34
35
version : ${{ matrix.image.version }}
36
+ build-cache : ${{ github.event.schedule == '30 6 1 * *' && 'true' || 'false' }}
35
37
variant : ${{ matrix.image.variant }}
36
38
tags : ${{ matrix.image.tags }}
37
39
username : ${{ vars.DOCKERHUB_USERNAME }}
Original file line number Diff line number Diff line change 9
9
- ' .github/workflows/publish-3.12.yml'
10
10
- ' 3.12/**'
11
11
schedule :
12
- - cron : ' 0 8 * * 1,5'
12
+ - cron : ' 0 9 * * 1,5'
13
+ - cron : ' 30 6 1 * *'
13
14
14
15
jobs :
15
16
tagger :
16
17
runs-on : ubuntu-latest
17
18
outputs :
18
19
major : ${{ steps.tags.outputs.major }}
19
- major_minor : ${{ steps.tags.outputs.major_minor }}
20
+ major-minor : ${{ steps.tags.outputs.major-minor }}
20
21
version : ${{ steps.tags.outputs.version }}
21
22
22
23
steps :
37
38
echo "MAJOR=${MAJOR}"
38
39
# Export the extracted version to GITHUB_OUTPUT
39
40
echo "major=${MAJOR}" >> $GITHUB_OUTPUT
40
- echo "major_minor =${MAJOR_MINOR}" >> $GITHUB_OUTPUT
41
+ echo "major-minor =${MAJOR_MINOR}" >> $GITHUB_OUTPUT
41
42
echo "version=${VERSION}" >> $GITHUB_OUTPUT
42
43
43
44
publish :
@@ -49,16 +50,17 @@ jobs:
49
50
- version : ' 3.12'
50
51
variant : bookworm
51
52
tags : |
52
- ${{ needs.tagger.outputs.major_minor }}
53
+ ${{ needs.tagger.outputs.major-minor }}
53
54
${{ needs.tagger.outputs.version }}
54
55
- version : ' 3.12'
55
56
variant : slim-bookworm
56
57
tags : |
57
- ${{ needs.tagger.outputs.major_minor }}-slim
58
+ ${{ needs.tagger.outputs.major-minor }}-slim
58
59
${{ needs.tagger.outputs.version }}-slim
59
60
with :
60
61
image : coatldev/python
61
62
version : ${{ matrix.image.version }}
63
+ build-cache : ${{ github.event.schedule == '30 6 1 * *' && 'true' || 'false' }}
62
64
variant : ${{ matrix.image.variant }}
63
65
tags : ${{ matrix.image.tags }}
64
66
username : ${{ vars.DOCKERHUB_USERNAME }}
Original file line number Diff line number Diff line change 9
9
- ' .github/workflows/publish-3.13.yml'
10
10
- ' 3.13/**'
11
11
schedule :
12
- - cron : ' 0 8 * * 0,4'
12
+ - cron : ' 0 9 * * 0,4'
13
+ - cron : ' 30 6 1 * *'
13
14
14
15
jobs :
15
16
tagger :
16
17
runs-on : ubuntu-latest
17
18
outputs :
18
19
major : ${{ steps.tags.outputs.major }}
19
- major_minor : ${{ steps.tags.outputs.major_minor }}
20
+ major-minor : ${{ steps.tags.outputs.major-minor }}
20
21
version : ${{ steps.tags.outputs.version }}
21
22
22
23
steps :
37
38
echo "MAJOR=${MAJOR}"
38
39
# Export the extracted version to GITHUB_OUTPUT
39
40
echo "major=${MAJOR}" >> $GITHUB_OUTPUT
40
- echo "major_minor =${MAJOR_MINOR}" >> $GITHUB_OUTPUT
41
+ echo "major-minor =${MAJOR_MINOR}" >> $GITHUB_OUTPUT
41
42
echo "version=${VERSION}" >> $GITHUB_OUTPUT
42
43
43
44
publish :
@@ -50,17 +51,18 @@ jobs:
50
51
variant : bookworm
51
52
tags : |
52
53
${{ needs.tagger.outputs.major }}
53
- ${{ needs.tagger.outputs.major_minor }}
54
+ ${{ needs.tagger.outputs.major-minor }}
54
55
${{ needs.tagger.outputs.version }}
55
56
- version : ' 3.13'
56
57
variant : slim-bookworm
57
58
tags : |
58
59
${{ needs.tagger.outputs.major }}-slim
59
- ${{ needs.tagger.outputs.major_minor }}-slim
60
+ ${{ needs.tagger.outputs.major-minor }}-slim
60
61
${{ needs.tagger.outputs.version }}-slim
61
62
with :
62
63
image : coatldev/python
63
64
version : ${{ matrix.image.version }}
65
+ build-cache : ${{ github.event.schedule == '30 6 1 * *' && 'true' || 'false' }}
64
66
variant : ${{ matrix.image.variant }}
65
67
tags : ${{ matrix.image.tags }}
66
68
username : ${{ vars.DOCKERHUB_USERNAME }}
Original file line number Diff line number Diff line change 8
8
Docker image to use as base name for tags.
9
9
required : true
10
10
type : string
11
+ build-cache :
12
+ description : >-
13
+ Use cache when building the image.
14
+ required : false
15
+ type : string
16
+ default : ' true'
11
17
version :
12
18
description : >-
13
19
Python version to release.
44
50
registry-username : ${{ inputs.username }}
45
51
build-file : ${{ inputs.version }}/${{ inputs.variant }}/Dockerfile
46
52
build-cache-key : ${{ inputs.version }}-${{ inputs.variant }}
53
+ build-cache : ${{ fromJson(inputs.build-cache) }}
47
54
build-digest-key : ${{ inputs.version }}-${{ inputs.variant }}
48
55
secrets :
49
56
registry-password : ${{ secrets.password }}
You can’t perform that action at this time.
0 commit comments