docker-auto-push.staging.sh 324 B

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