forked from d8ahazard/FlexTV-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
create-manifest
executable file
·33 lines (25 loc) · 978 Bytes
/
create-manifest
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash -ex
DOCKER_ORG=samip537
DOCKER_IMAGE=docker-flextv
TAGS="latest"
for TAG in $TAGS
do
docker manifest create --amend $DOCKER_ORG/$DOCKER_IMAGE:$TAG \
$DOCKER_ORG/$DOCKER_IMAGE:amd64 \
$DOCKER_ORG/$DOCKER_IMAGE:arm32v6 \
$DOCKER_ORG/$DOCKER_IMAGE:arm32v7 \
$DOCKER_ORG/$DOCKER_IMAGE:arm64v8
docker manifest annotate $DOCKER_ORG/$DOCKER_IMAGE:$TAG \
$DOCKER_ORG/$DOCKER_IMAGE:amd64 \
--os linux --arch amd64
docker manifest annotate $DOCKER_ORG/$DOCKER_IMAGE:$TAG \
$DOCKER_ORG/$DOCKER_IMAGE:arm32v6 \
--os linux --arch arm --variant v6
docker manifest annotate $DOCKER_ORG/$DOCKER_IMAGE:$TAG \
$DOCKER_ORG/$DOCKER_IMAGE:arm32v7 \
--os linux --arch arm --variant v7
docker manifest annotate $DOCKER_ORG/$DOCKER_IMAGE:$TAG \
$DOCKER_ORG/$DOCKER_IMAGE:arm64v8 \
--os linux --arch arm64 --variant v8
docker manifest push $DOCKER_ORG/$DOCKER_IMAGE:$TAG
done