File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ inputs:
2626 type : string
2727 registry_password :
2828 required : true
29+ platforms :
30+ description : ' Comma-separated target platforms for the image build'
31+ required : false
32+ type : string
33+ default : ' linux/amd64,linux/arm64'
2934
3035outputs :
3136 image_tag :
7681 context : ${{ inputs.context }}
7782 file : ${{ inputs.dockerfile }}
7883 push : true
79- platforms : linux/amd64,linux/arm64
84+ platforms : ${{ inputs.platforms }}
8085 tags : ${{ steps.meta.outputs.tags }}
8186 labels : ${{ steps.meta.outputs.labels }}
8287 annotations : ${{ steps.meta.outputs.annotations }}
Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ inputs:
2121 type : string
2222 registry_password :
2323 required : true
24+ platforms :
25+ description : " Comma-separated target platforms for the image build"
26+ required : false
27+ type : string
28+ default : " linux/amd64,linux/arm64"
2429
2530outputs :
2631 image_tag :
@@ -113,7 +118,7 @@ runs:
113118 with :
114119 context : ${{ inputs.context }}
115120 push : true
116- platforms : linux/amd64,linux/arm64
121+ platforms : ${{ inputs.platforms }}
117122 tags : ${{ steps.meta.outputs.tags }}
118123 labels : ${{ steps.meta.outputs.labels }}
119124 annotations : ${{ steps.meta.outputs.annotations }}
Original file line number Diff line number Diff line change 4848 registry : ghcr.io
4949 registry_username : ${{ github.repository_owner}}
5050 registry_password : ${{ secrets.GITHUB_TOKEN }}
51+ # PR images only ever deploy to OpenShift (amd64); skip the slow QEMU-emulated arm64 build
52+ platforms : linux/amd64
5153 outputs :
5254 image_tag : ${{ steps.builder.outputs.image_tag }}
5355 image_version : ${{ steps.builder.outputs.image_version }}
7173 registry : ghcr.io
7274 registry_username : ${{ github.repository_owner}}
7375 registry_password : ${{ secrets.GITHUB_TOKEN }}
76+ platforms : linux/amd64
7477 outputs :
7578 image_tag : ${{ steps.builder.outputs.image_tag }}
7679
9295 registry : ghcr.io
9396 registry_username : ${{ github.repository_owner}}
9497 registry_password : ${{ secrets.GITHUB_TOKEN }}
98+ platforms : linux/amd64
9599 outputs :
96100 image_tag : ${{ steps.builder.outputs.image_tag }}
97101
You can’t perform that action at this time.
0 commit comments