docker-archlinux-daily/create-manifest

24 lines
613 B
Text
Raw Permalink Normal View History

2019-01-23 10:36:27 +00:00
#!/bin/bash -ex
2019-01-23 21:59:07 +00:00
DOCKER_ORG=agners
DOCKER_IMAGE=archlinuxarm
TAGS="latest $(date +'%Y%m%d')"
for TAG in $TAGS
do
docker manifest create --amend $DOCKER_ORG/$DOCKER_IMAGE:$TAG \
$DOCKER_ORG/$DOCKER_IMAGE-arm32v7:$TAG \
$DOCKER_ORG/$DOCKER_IMAGE-arm64v8:$TAG
docker manifest annotate $DOCKER_ORG/$DOCKER_IMAGE:$TAG \
$DOCKER_ORG/$DOCKER_IMAGE-arm32v7:$TAG \
--os linux --arch arm --variant v7
docker manifest annotate $DOCKER_ORG/$DOCKER_IMAGE:$TAG \
$DOCKER_ORG/$DOCKER_IMAGE-arm64v8:$TAG \
--os linux --arch arm64 --variant v8
docker manifest push $DOCKER_ORG/$DOCKER_IMAGE:$TAG
done