23 lines
613 B
Bash
Executable file
23 lines
613 B
Bash
Executable file
#!/bin/bash -ex
|
|
|
|
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
|