File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 6666 done < "latest_manifests.txt" | jq -cs '.[] | (select(.platform == "linux/arm64" ) | .runner = "ubuntu-24.04-arm"), (select(.platform == "linux/amd64" ) | .runner = "ubuntu-latest")' | jq -cs '.' )
6767 mv latest_manifests.txt manifests.txt
6868 images=$(echo $images | jq 'map(.target=.image)' | jq -cs '.[]' )
69+ images=$(echo $images | jq 'map(.ml=false)' | jq -cs '.[]' )
6970 # add ml variants
70- images=$(echo $images | jq 'map([.,(. target= (.target|sub("-";"-ml-"))) ] | .[])' | jq -cs '.[]' )
71+ images=$(echo $images | jq 'map([.+{ml:false},.+{ml:true, target: (.target|sub("-";"-ml-"))} ] | .[])' | jq -cs '.[]' )
7172 [ ! -z "${{ vars.DOCKER_ORGNAME }}" ] && ORGNAME="${{ vars.DOCKER_ORGNAME }}"
7273 images=$(echo $images | jq "map(.orgname=\"$ORGNAME\")" -c )
7374 echo $images | jq
@@ -119,7 +120,7 @@ jobs:
119120 context : .
120121 build-args : |
121122 BASE_IMAGE=${{ env.IMAGE_REPO }}/${{ matrix.image }}:${{ matrix.tag }}
122- ML=$(if [[ "$ {{ matrix.target }}" == *-ml-* ]]; then echo "true"; else echo "false"; fi)
123+ ML=${{ matrix.ml }}
123124 push : true
124125 tags : ${{ matrix.orgname }}/${{ matrix.target }}
125126 outputs : type=image,push-by-digest=true,name-canonical=true,push=true
You can’t perform that action at this time.
0 commit comments