You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
472 B

  1. #!/bin/sh
  2. #
  3. # Script to build images
  4. #
  5. # break on error
  6. set -e
  7. REPO="muccg"
  8. DATE=`date +%Y.%m.%d`
  9. image="${REPO}/devpi:latest"
  10. echo "################################################################### ${image}"
  11. ## warm up cache for CI
  12. docker pull ${image} || true
  13. ## build
  14. docker build --pull=true -t ${image}-${DATE} .
  15. docker build -t ${image} .
  16. ## for logging in CI
  17. docker inspect ${image}-${DATE}
  18. # push
  19. docker push ${image}-${DATE}
  20. docker push ${image}