docker-auto-push.prod.sh 310 B

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