diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 881045c..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 != '' @@ -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