Created
April 28, 2019 07:42
-
-
Save FalconIA/659c01ca9221353519c1fe1f80520050 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -e "\033[32m download new package (version $1) \033[0m" | |
wget -O yapi.tgz http://registry.npm.taobao.org/yapi-vendor/download/yapi-vendor-$1.tgz | |
echo -e "\033[32m build new image \033[0m" | |
docker build -t registry.cn-beijing.aliyuncs.com/falconia/yapi:latest . | |
docker tag registry.cn-beijing.aliyuncs.com/falconia/yapi:latest registry.cn-beijing.aliyuncs.com/falconia/yapi:$1 | |
docker push registry.cn-beijing.aliyuncs.com/falconia/yapi:latest | |
docker push registry.cn-beijing.aliyuncs.com/falconia/yapi:$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment