4646 tags : ${{ steps.aliases.outputs.tags }}
4747 steps :
4848 - name : Checkout
49- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
49+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
5050 with :
5151 persist-credentials : false
5252
9393 name : Build (${{ inputs.engine }}:${{ inputs.version }}-${{ inputs.libc }}${{ inputs.tag_suffix }}, ${{ matrix.arch }})
9494 steps :
9595 - name : Set up Docker
96- uses : crazy-max/ghaction-setup-docker@3fb92d6d9c634363128c8cce4bc3b2826526370a
96+ uses : crazy-max/ghaction-setup-docker@77e84dbf09b47d1e29270283c22f16145aa85ca1 # v5.4.0
9797 with :
9898 version : v28.5.1
9999 daemon-config : |
@@ -104,7 +104,7 @@ jobs:
104104 }
105105
106106 - name : Checkout
107- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
107+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
108108 with :
109109 persist-credentials : false
110110 fetch-depth : 20
@@ -266,7 +266,7 @@ jobs:
266266 name : Join (${{ inputs.engine }}:${{ inputs.version }}-${{ inputs.libc }}${{ inputs.tag_suffix }}) [${{ join(fromJSON(inputs.arch), ', ') }}]
267267 steps :
268268 - name : Set up Docker
269- uses : crazy-max/ghaction-setup-docker@3fb92d6d9c634363128c8cce4bc3b2826526370a
269+ uses : crazy-max/ghaction-setup-docker@77e84dbf09b47d1e29270283c22f16145aa85ca1 # v5.4.0
270270 with :
271271 version : v28.5.1
272272
@@ -317,12 +317,19 @@ jobs:
317317 ${{ steps.vars.outputs.IMAGE }}:${{ steps.vars.outputs.RUNID_TAG }}
318318
319319 - name : Create and push multiarch manifest aliases
320- if : ${{ inputs.push }}
321320 env :
322321 ALIAS_TAGS : ${{ needs.alias.outputs.tags }}
323322 run : |
324323 while IFS= read -r tag; do
325324 docker buildx imagetools create \
326- -t ${{ steps.vars.outputs.IMAGE }}:"$tag" \
325+ -t ${{ steps.vars.outputs.IMAGE }}:"$tag-gha${{ github.run_id }}-g${{ github.sha }}" \
326+ ${{ steps.vars.outputs.IMAGE }}:${{ steps.vars.outputs.RUNID_TAG }}
327+ docker buildx imagetools create \
328+ -t ${{ steps.vars.outputs.IMAGE }}:"$tag-g${{ github.sha }}" \
327329 ${{ steps.vars.outputs.IMAGE }}:${{ steps.vars.outputs.RUNID_TAG }}
330+ if [ "${{ inputs.push }}" = true ]; then
331+ docker buildx imagetools create \
332+ -t ${{ steps.vars.outputs.IMAGE }}:"$tag" \
333+ ${{ steps.vars.outputs.IMAGE }}:${{ steps.vars.outputs.RUNID_TAG }}
334+ fi
328335 done < <(jq -r '.[]' <<< "$ALIAS_TAGS")
0 commit comments