From 80b1c560dab1dcf24f7a9c4a69f60b061b2a1ff8 Mon Sep 17 00:00:00 2001 From: Martin Buchleitner Date: Fri, 6 Dec 2024 11:34:19 +0100 Subject: [PATCH 1/3] fix: Debug publish images Signed-off-by: Martin Buchleitner --- .github/workflows/container.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 881045c..502cf8a 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -164,7 +164,8 @@ jobs: - name: Publish container if: ${{ github.event_name != 'pull_request' && needs.pre-commit.outputs.version != '' }} run: | - for img in $(echo "${{ fromJson(steps.meta.outputs.json).tags }}"" | jq -r '.tags[]' ); do + set -ex + for img in $( jq -r '.tags[]' <<< "${{ steps.meta.outputs.json }}" ); do docker push $img done From b72bf1849f3cedfe8e3a8448b0472cbbadfc54ba Mon Sep 17 00:00:00 2001 From: Martin Buchleitner Date: Fri, 6 Dec 2024 11:37:03 +0100 Subject: [PATCH 2/3] fix: string quote Signed-off-by: Martin Buchleitner --- .github/workflows/container.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 502cf8a..bcc95cc 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -165,7 +165,7 @@ jobs: if: ${{ github.event_name != 'pull_request' && needs.pre-commit.outputs.version != '' }} run: | set -ex - for img in $( jq -r '.tags[]' <<< "${{ steps.meta.outputs.json }}" ); do + for img in $( jq -r '.tags[]' <<< '${{ steps.meta.outputs.json }}' ); do docker push $img done From a6fae1252234aa27eedf8eeb155a43268d8432b2 Mon Sep 17 00:00:00 2001 From: Martin Buchleitner Date: Fri, 6 Dec 2024 11:40:48 +0100 Subject: [PATCH 3/3] fix: platform parameter Signed-off-by: Martin Buchleitner --- .github/workflows/container.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index bcc95cc..0915f96 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -43,7 +43,6 @@ on: required: false type: string default: '' - build_args: description: 'The build arguments for the image' required: false @@ -129,6 +128,7 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: ${{ inputs.build_args }} + platforms: ${{ inputs.platforms }} - name: Scan Docker Image if: env.MONDOO_CONFIG_BASE64 != ''