-
Notifications
You must be signed in to change notification settings - Fork 1
/
tag.sh
executable file
·39 lines (25 loc) · 1.33 KB
/
tag.sh
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
34
35
36
37
38
39
#!/bin/bash
TAG=$1
if [ -z "$TAG" ]; then
echo "No tag provided. Exiting."
exit 1
fi
echo "Pulling images"
docker pull ghcr.io/shardeum/shardeum-validator-arm64:$TAG
docker pull ghcr.io/shardeum/shardeum-validator-amd64:$TAG
echo "Tagging latest"
docker tag ghcr.io/shardeum/shardeum-validator-arm64:$TAG ghcr.io/shardeum/shardeum-validator-arm64:latest
docker tag ghcr.io/shardeum/shardeum-validator-amd64:$TAG ghcr.io/shardeum/shardeum-validator-amd64:latest
echo "Pushing latest"
docker push ghcr.io/shardeum/shardeum-validator-arm64:latest
docker push ghcr.io/shardeum/shardeum-validator-amd64:latest
echo "Creating $TAG manifest"
docker manifest create --amend ghcr.io/shardeum/shardeum-validator:$TAG ghcr.io/shardeum/shardeum-validator-arm64:$TAG ghcr.io/shardeum/shardeum-validator-amd64:$TAG
docker manifest push ghcr.io/shardeum/shardeum-validator:$TAG
echo "Creating :latest manifest"
#docker manifest create --amend ghcr.io/shardeum/shardeum-validator:latest ghcr.io/shardeum/shardeum-validator-arm64:$TAG ghcr.io/shardeum/shardeum-validator-amd64:$TAG
#docker manifest push ghcr.io/shardeum/shardeum-validator:latest
docker pull ghcr.io/shardeum/shardeum-validator:$TAG
docker tag ghcr.io/shardeum/shardeum-validator:$TAG ghcr.io/shardeum/shardeum-validator:latest
docker push ghcr.io/shardeum/shardeum-validator:latest
echo "Done"