2017-01-05 14:35:38 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# build hook for dockerhubs autobuild feature
|
|
|
|
#
|
|
|
|
|
|
|
|
. "hooks/config"
|
|
|
|
|
|
|
|
for DOCKER_IMAGE in ${DOCKER_IMAGES}; do
|
|
|
|
|
|
|
|
echo "Build Zammad Docker image ${DOCKER_IMAGE} for DockerHubs ${DOCKER_REPO}:${DOCKER_IMAGE} repo"
|
2017-01-12 15:20:59 +00:00
|
|
|
sleep 10
|
2017-01-12 13:14:25 +00:00
|
|
|
docker build --no-cache --build-arg BUILD_DATE=$(date -u +”%Y-%m-%dT%H:%M:%SZ”) -t ${DOCKER_REPO}:${DOCKER_IMAGE} -f containers/${DOCKER_IMAGE}/Dockerfile .
|
|
|
|
docker push ${DOCKER_REPO}:${DOCKER_IMAGE}
|
2017-01-05 14:35:38 +00:00
|
|
|
|
|
|
|
done
|