- #!/bin/sh
- git pull
- if ! [[ -z "${RELEASE_VERSION}" ]]; then
- git checkout ${RELEASE_VERSION};
- version=${RELEASE_VERSION};
- else
- git checkout master;
- version=2.0.0
- fi
- image=registry-platform.linkerplus.com/yunti/dove:$version
- docker build -t $image --target prod . && docker push $image || exit 1
|