use dockerx feature with platform
This commit is contained in:
parent
b6ee3d56e7
commit
083bb2c535
@ -14,6 +14,10 @@ inputs:
|
||||
description: 'Docker build arguments'
|
||||
required: false
|
||||
default: ''
|
||||
platform:
|
||||
description: 'Platform'
|
||||
required: false
|
||||
default: 'linux/amd64'
|
||||
outputs:
|
||||
image_version:
|
||||
description: "Image version"
|
||||
@ -34,6 +38,5 @@ runs:
|
||||
shell: sh
|
||||
- name: Build and push docker
|
||||
run: |
|
||||
docker build . -t ${{ inputs.image_name }}:${{ steps.git.outputs.short_hash }} ${{ inputs.aditional_args }} && \
|
||||
docker push ${{ inputs.image_name }}:${{ steps.git.outputs.short_hash }}
|
||||
docker dockerx build -t ${{ inputs.image_name }}:${{ steps.git.outputs.short_hash }} ${{ inputs.aditional_args }} --platform {{inputs.platform }} --push .
|
||||
shell: sh
|
||||
|
Loading…
Reference in New Issue
Block a user