|
@@ -214,10 +214,12 @@ jobs:
|
|
|
mv /tmp/${{ matrix.platform }}/${{ matrix.image }}_image_${{ matrix.platform }}.tar .
|
|
mv /tmp/${{ matrix.platform }}/${{ matrix.image }}_image_${{ matrix.platform }}.tar .
|
|
|
loaded_image=$(docker load -i ${{ matrix.image }}_image_${{ matrix.platform }}.tar | grep "Loaded image:" | awk '{print $3}')
|
|
loaded_image=$(docker load -i ${{ matrix.image }}_image_${{ matrix.platform }}.tar | grep "Loaded image:" | awk '{print $3}')
|
|
|
tags=$(echo ${tags} | tr ' ' '\n')
|
|
tags=$(echo ${tags} | tr ' ' '\n')
|
|
|
|
|
+ image_name=$(echo "ghcr.io/${{ github.repository_owner }}/${{ matrix.image }}" | tr '[:upper:]' '[:lower:]')
|
|
|
|
|
+ echo "image name = $image_name"
|
|
|
for tag in $tags; do
|
|
for tag in $tags; do
|
|
|
echo "tag = $tag"
|
|
echo "tag = $tag"
|
|
|
- docker tag $loaded_image ghcr.io/${{ github.repository_owner }}/${{ matrix.image }}:${tag}_${{ matrix.platform }}
|
|
|
|
|
- docker push ghcr.io/${{ github.repository_owner }}/${{ matrix.image }}:${tag}_${{ matrix.platform }}
|
|
|
|
|
|
|
+ docker tag $loaded_image $image_name:${tag}_${{ matrix.platform }}
|
|
|
|
|
+ docker push $image_name:${tag}_${{ matrix.platform }}
|
|
|
done
|
|
done
|
|
|
|
|
|
|
|
create_manifest:
|
|
create_manifest:
|
|
@@ -249,12 +251,14 @@ jobs:
|
|
|
|
|
|
|
|
- name: Create and push multi-platform manifest
|
|
- name: Create and push multi-platform manifest
|
|
|
run: |
|
|
run: |
|
|
|
|
|
+ image_name=$(echo "ghcr.io/${{ github.repository_owner }}/${{ matrix.image }}" | tr '[:upper:]' '[:lower:]')
|
|
|
|
|
+ echo "image name = $image_name"
|
|
|
tags=$(echo ${tags} | tr ' ' '\n')
|
|
tags=$(echo ${tags} | tr ' ' '\n')
|
|
|
for tag in $tags; do
|
|
for tag in $tags; do
|
|
|
echo 'tag = $tag'
|
|
echo 'tag = $tag'
|
|
|
- docker buildx imagetools create --tag ghcr.io/${{ github.repository_owner }}/${{ matrix.image }}:$tag \
|
|
|
|
|
- ghcr.io/${{ github.repository_owner }}/${{ matrix.image }}:${tag}_amd64 \
|
|
|
|
|
- ghcr.io/${{ github.repository_owner }}/${{ matrix.image }}:${tag}_arm64
|
|
|
|
|
|
|
+ docker buildx imagetools create --tag $image_name:$tag \
|
|
|
|
|
+ $image_name:${tag}_amd64 \
|
|
|
|
|
+ $image_name:${tag}_arm64
|
|
|
done
|
|
done
|
|
|
|
|
|
|
|
# FIXME: an admin needs to mark this as non-mandatory, and then we can remove it
|
|
# FIXME: an admin needs to mark this as non-mandatory, and then we can remove it
|