Files
eiblog/build_docker.sh
deepzz0 94e5344219 update
2016-10-02 00:56:32 +08:00

11 lines
295 B
Bash
Executable File

#!/bin/bash
echo "go build..."
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build && \
domain="registry.cn-hangzhou.aliyuncs.com" && \
docker build -t $domain/deepzz/eiblog . && \
read -p "是否上传到服务器(y/n):" word && \
if [ $word = "y" ] ;then
docker push $domain/deepzz/eiblog
fi