-
Notifications
You must be signed in to change notification settings - Fork 4
/
release.sh
executable file
·21 lines (18 loc) · 1.16 KB
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
PACKAGE_VERSION=$(grep 'version' package.json | cut -d '"' -f4)
if [ `arch` == "arm64" ]; then
docker buildx build --platform linux/amd64 -t wy373226722/mysql-backup:$PACKAGE_VERSION .
else
docker build -t wy373226722/mysql-backup:$PACKAGE_VERSION .
fi
docker tag wy373226722/mysql-backup:$PACKAGE_VERSION registry.cn-shenzhen.aliyuncs.com/yi-ge/mysql-backup:$PACKAGE_VERSION
docker tag wy373226722/mysql-backup:$PACKAGE_VERSION registry.cn-shenzhen.aliyuncs.com/yi-ge/mysql-backup:latest
docker tag wy373226722/mysql-backup:$PACKAGE_VERSION ccr.ccs.tencentyun.com/yi-ge/mysql-backup:$PACKAGE_VERSION
docker tag wy373226722/mysql-backup:$PACKAGE_VERSION ccr.ccs.tencentyun.com/yi-ge/mysql-backup:latest
docker tag wy373226722/mysql-backup:$PACKAGE_VERSION wy373226722/mysql-backup:latest
docker push ccr.ccs.tencentyun.com/yi-ge/mysql-backup:$PACKAGE_VERSION
docker push ccr.ccs.tencentyun.com/yi-ge/mysql-backup:latest
docker push registry.cn-shenzhen.aliyuncs.com/yi-ge/mysql-backup:$PACKAGE_VERSION
docker push registry.cn-shenzhen.aliyuncs.com/yi-ge/mysql-backup:latest
docker push wy373226722/mysql-backup:$PACKAGE_VERSION
docker push wy373226722/mysql-backup:latest