mirror of
https://gitee.com/iioter/iotgateway.git
synced 2024-11-29 18:28:09 +08:00
16 lines
664 B
Bash
16 lines
664 B
Bash
#!/bin/bash
|
|
echo start
|
|
tag="2.0.2"
|
|
echo $tag
|
|
docker build -t registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:$tag .
|
|
docker push registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:$tag
|
|
|
|
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
|
|
|
|
docker tag registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:latest 15261671110/iotgateway:$tag
|
|
docker push 15261671110/iotgateway:$tag
|
|
|
|
docker tag 15261671110/iotgateway:$tag 15261671110/iotgateway:latest
|
|
docker push 15261671110/iotgateway:latest
|