Skip to content

Commit 9ecfaef

Browse files
committed
fix docker/build-push-action build-args
reference: docker/build-push-action#557 (comment)
1 parent 0217641 commit 9ecfaef

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ jobs:
9191
push: true
9292
tags: ${{ steps.meta.outputs.tags }}
9393
labels: ${{ steps.meta.outputs.labels }}
94-
build-args: "TAG=${{ github.ref_name }},SHA1=${{ github.sha }}"
94+
build-args: |
95+
TAG=${{ github.ref_name }}
96+
SHA1=${{ github.sha }}
9597
9698
- name: Build and push alpine image
9799
uses: docker/build-push-action@v6
@@ -102,4 +104,6 @@ jobs:
102104
push: true
103105
tags: oliver006/redis_exporter:${{ github.ref_name }}-alpine,ghcr.io/oliver006/redis_exporter:${{ github.ref_name }}-alpine,quay.io/oliver006/redis_exporter:${{ github.ref_name }}-alpine,oliver006/redis_exporter:alpine,ghcr.io/oliver006/redis_exporter:alpine,quay.io/oliver006/redis_exporter:alpine
104106
labels: ${{ steps.meta.outputs.labels }}
105-
build-args: "TAG=${{ github.ref_name }},SHA1=${{ github.sha }}"
107+
build-args: |
108+
TAG=${{ github.ref_name }}
109+
SHA1=${{ github.sha }}

0 commit comments

Comments
 (0)