2022-07-18 15:12:57 +00:00
|
|
|
#!/bin/bash
|
|
|
|
echo start
|
2023-05-24 14:39:19 +00:00
|
|
|
tag="2.0.2"
|
2022-07-25 04:06:49 +00:00
|
|
|
echo $tag
|
2023-05-24 14:39:19 +00:00
|
|
|
docker build -t registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:$tag .
|
2022-07-27 12:23:31 +00:00
|
|
|
docker push registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:$tag
|
2022-07-25 04:06:49 +00:00
|
|
|
|
2022-07-27 12:23:31 +00:00
|
|
|
docker tag registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:$tag registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:latest
|
|
|
|
docker push registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:latest
|
2022-07-25 04:06:49 +00:00
|
|
|
|
2022-07-27 12:23:31 +00:00
|
|
|
docker tag registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:latest 15261671110/iotgateway:$tag
|
2022-07-25 04:06:49 +00:00
|
|
|
docker push 15261671110/iotgateway:$tag
|
|
|
|
|
|
|
|
docker tag 15261671110/iotgateway:$tag 15261671110/iotgateway:latest
|
|
|
|
docker push 15261671110/iotgateway:latest
|