4 Commits

Author SHA1 Message Date
f2098c69d5 fix: typo: missing $ sign 2024-08-16 16:56:59 +02:00
7168342f3e fix: typo: dockerx -> buildx 2024-08-16 16:52:05 +02:00
4c469f30d0 fix: unknown shorthand flag: 't' in -t 2024-08-16 16:49:16 +02:00
083bb2c535 use dockerx feature with platform 2024-08-16 16:31:39 +02:00

View File

@@ -14,6 +14,10 @@ inputs:
description: 'Docker build arguments' description: 'Docker build arguments'
required: false required: false
default: '' default: ''
platform:
description: 'Platform'
required: false
default: 'linux/amd64'
outputs: outputs:
image_version: image_version:
description: "Image version" description: "Image version"
@@ -34,6 +38,5 @@ runs:
shell: sh shell: sh
- name: Build and push docker - name: Build and push docker
run: | run: |
docker build . -t ${{ inputs.image_name }}:${{ steps.git.outputs.short_hash }} ${{ inputs.aditional_args }} && \ docker buildx build --tag ${{ inputs.image_name }}:${{ steps.git.outputs.short_hash }} ${{ inputs.aditional_args }} --platform ${{inputs.platform }} --push .
docker push ${{ inputs.image_name }}:${{ steps.git.outputs.short_hash }}
shell: sh shell: sh