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
27 lines
472 B
#!/bin/sh
|
|
#
|
|
# Script to build images
|
|
#
|
|
|
|
# break on error
|
|
set -e
|
|
|
|
REPO="muccg"
|
|
DATE=`date +%Y.%m.%d`
|
|
|
|
image="${REPO}/devpi:latest"
|
|
echo "################################################################### ${image}"
|
|
|
|
## warm up cache for CI
|
|
docker pull ${image} || true
|
|
|
|
## build
|
|
docker build --pull=true -t ${image}-${DATE} .
|
|
docker build -t ${image} .
|
|
|
|
## for logging in CI
|
|
docker inspect ${image}-${DATE}
|
|
|
|
# push
|
|
docker push ${image}-${DATE}
|
|
docker push ${image}
|