File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,21 @@ jobs:
36
36
username : ${{ github.actor }}
37
37
password : ${{ secrets.GITHUB_TOKEN }}
38
38
39
+ - id : tags
40
+ uses : actions/github-script@v7
41
+ with :
42
+ script : |
43
+ let json = `${{ toJSON(matrix.tags) }}`
44
+ core.setOutput("multiline", JSON.parse(json).join("\n"))
45
+
39
46
- name : Docker meta
40
47
id : meta
41
48
uses : docker/metadata-action@v5
42
49
with :
43
50
images : |
44
51
${{ env.REGISTRY }}/${{ env.IMAGE_BASE }}/images/${{ matrix.os }}
45
52
tags : |
46
- ${{ join( matrix .tags, ' ') }}
53
+ ${{ steps .tags.outputs.multiline }}
47
54
48
55
- name : Build and push Docker image
49
56
id : build-and-push
57
64
${{ steps.meta.outputs.labels }}
58
65
tags : |
59
66
${{ steps.meta.outputs.tags }}
60
- push : false
67
+ push : true
You can’t perform that action at this time.
0 commit comments