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