Skip to content

Commit 18b1037

Browse files
committed
fix newlines
Signed-off-by: Denis Baryshev <dennybaa@gmail.com>
1 parent 730addf commit 18b1037

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/publish-images.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,21 @@ jobs:
3636
username: ${{ github.actor }}
3737
password: ${{ secrets.GITHUB_TOKEN }}
3838

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+
3946
- name: Docker meta
4047
id: meta
4148
uses: docker/metadata-action@v5
4249
with:
4350
images: |
4451
${{ env.REGISTRY }}/${{ env.IMAGE_BASE }}/images/${{ matrix.os }}
4552
tags: |
46-
${{ join( matrix.tags, ' ') }}
53+
${{ steps.tags.outputs.multiline }}
4754
4855
- name: Build and push Docker image
4956
id: build-and-push
@@ -57,4 +64,4 @@ jobs:
5764
${{ steps.meta.outputs.labels }}
5865
tags: |
5966
${{ steps.meta.outputs.tags }}
60-
push: false
67+
push: true

0 commit comments

Comments
 (0)