File tree Expand file tree Collapse file tree 3 files changed +24
-8
lines changed Expand file tree Collapse file tree 3 files changed +24
-8
lines changed Original file line number Diff line number Diff line change 29
29
2.7-slim
30
30
2.7.18-slim
31
31
with :
32
+ image : coatldev/python
32
33
version : ${{ matrix.image.version }}
33
34
variant : ${{ matrix.image.variant }}
34
35
tags : ${{ matrix.image.tags }}
36
+ username : ${{ vars.DOCKERHUB_USERNAME }}
35
37
secrets :
36
38
password : ${{ secrets.DOCKERHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -48,18 +48,20 @@ jobs:
48
48
- version : ' 3.12'
49
49
variant : bookworm
50
50
tags : |
51
- type=raw,value= ${{ needs.tagger.outputs.major }}
52
- type=raw,value= ${{ needs.tagger.outputs.major_minor }}
53
- type=raw,value= ${{ needs.tagger.outputs.version }}
51
+ ${{ needs.tagger.outputs.major }}
52
+ ${{ needs.tagger.outputs.major_minor }}
53
+ ${{ needs.tagger.outputs.version }}
54
54
- version : ' 3.12'
55
55
variant : slim-bookworm
56
56
tags : |
57
- type=raw,value= ${{ needs.tagger.outputs.major }}-slim
58
- type=raw,value= ${{ needs.tagger.outputs.major_minor }}-slim
59
- type=raw,value= ${{ needs.tagger.outputs.version }}-slim
57
+ ${{ needs.tagger.outputs.major }}-slim
58
+ ${{ needs.tagger.outputs.major_minor }}-slim
59
+ ${{ needs.tagger.outputs.version }}-slim
60
60
with :
61
+ image : coatldev/python
61
62
version : ${{ matrix.image.version }}
62
63
variant : ${{ matrix.image.variant }}
63
64
tags : ${{ matrix.image.tags }}
65
+ username : ${{ vars.DOCKERHUB_USERNAME }}
64
66
secrets :
65
67
password : ${{ secrets.DOCKERHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
1
on :
2
2
workflow_call :
3
3
inputs :
4
+ image :
5
+ description : >-
6
+ Docker image to use as base name for tags.
7
+ required : true
8
+ type : string
4
9
version :
5
10
description : >-
6
11
Python version to release.
16
21
List of tags as key-value pair attributes.
17
22
required : false
18
23
type : string
24
+ username :
25
+ description : >-
26
+ Username for authenticating to the Docker registry.
27
+ required : true
28
+ type : string
19
29
secrets :
20
30
password :
31
+ description : >-
32
+ Password or personal access token for authenticating the Docker registry.
21
33
required : true
22
34
23
35
jobs :
24
36
publish :
25
37
uses : coatl-dev/workflows/.github/workflows/docker-build-push-multi-platform.yml@v4
26
38
with :
27
- registry-image : coatldev/python
39
+ registry-image : ${{ inputs.image }}
28
40
metadata-tags : |
29
41
${{ inputs.tags }}
30
- registry-username : ${{ vars.DOCKERHUB_USERNAME }}
42
+ registry-username : ${{ inputs.username }}
31
43
build-file : ${{ inputs.version }}/${{ inputs.variant }}/Dockerfile
32
44
build-cache-key : ${{ inputs.version }}-${{ inputs.variant }}
33
45
build-digest-key : ${{ inputs.version }}-${{ inputs.variant }}
You can’t perform that action at this time.
0 commit comments