-
-
Notifications
You must be signed in to change notification settings - Fork 409
/
deploy_docker_cn.sh
27 lines (17 loc) · 904 Bytes
/
deploy_docker_cn.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
#!/bin/bash
ver=$(cat version)
echo $ver
echo "docker tag latest $ver"
docker pull --platform=linux/amd64 bjdgyc/anylink:$ver
docker tag bjdgyc/anylink:$ver registry.cn-hangzhou.aliyuncs.com/bjdgyc/anylink:latest
docker push registry.cn-hangzhou.aliyuncs.com/bjdgyc/anylink:latest
docker tag bjdgyc/anylink:$ver registry.cn-hangzhou.aliyuncs.com/bjdgyc/anylink:$ver
docker push registry.cn-hangzhou.aliyuncs.com/bjdgyc/anylink:$ver
docker rmi bjdgyc/anylink:$ver
#arm64
docker pull --platform=linux/arm64 bjdgyc/anylink:$ver
docker tag bjdgyc/anylink:$ver registry.cn-hangzhou.aliyuncs.com/bjdgyc/anylink:arm64v8-latest
docker push registry.cn-hangzhou.aliyuncs.com/bjdgyc/anylink:arm64v8-latest
docker tag bjdgyc/anylink:$ver registry.cn-hangzhou.aliyuncs.com/bjdgyc/anylink:arm64v8-$ver
docker push registry.cn-hangzhou.aliyuncs.com/bjdgyc/anylink:arm64v8-$ver
docker rmi bjdgyc/anylink:$ver