Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
build-and-push-docker.sh 415 Bytes
Copy Edit Web IDE Raw Blame History
老周 authored 2020-09-04 09:54 . 构建时增加时间戳
#!/usr/bin/env bash
dockerImage=registry.cn-shenzhen.aliyuncs.com/jetlinks/jetlinks-standalone:$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
./mvnw clean package -Dmaven.test.skip=true -Dmaven.build.timestamp="$(date "+%Y-%m-%d %H:%M:%S")"
if [ $? -ne 0 ];then
echo "构建失败!"
else
cd ./jetlinks-standalone || exit
docker build -t "$dockerImage" . && docker push "$dockerImage"
fi

Comment ( 0 )

Sign in for post a comment