Skip to content

Instantly share code, notes, and snippets.

@FalconIA
Created April 28, 2019 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FalconIA/659c01ca9221353519c1fe1f80520050 to your computer and use it in GitHub Desktop.
Save FalconIA/659c01ca9221353519c1fe1f80520050 to your computer and use it in GitHub Desktop.
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