add logging

This commit is contained in:
Damian Mee 2019-05-04 00:00:34 +07:00
parent 263d643e59
commit fea1df69a9
No known key found for this signature in database
GPG Key ID: 2F961EAB8789725D
2 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,8 @@ set -e
TAG="${SLUG}:${TRAVIS_TAG:-$TRAVIS_BRANCH}-${FROM}-linux-${ARCH}"
echo "Building ${TAG} with ${PREFIX}/Dockerfile…"
if [[ "${FROM}" = "binary" ]]; then
docker build --no-cache --build-arg "arch=x86_64" -t ${TAG} ${PREFIX}/
@ -10,7 +12,6 @@ else
docker build --no-cache -t ${TAG} ${PREFIX}/
fi
docker build --no-cache --build-arg "${BUILD_ARG}" -t ${TAG} ${PREFIX}/
# Push image, if tag was specified
if [[ -n "${TRAVIS_TAG}" ]]; then

View File

@ -14,6 +14,8 @@ chmod +x alpine-chroot-install
TAG="${SLUG}:${TRAVIS_TAG:-$TRAVIS_BRANCH}-${FROM}-linux-${ARCH}"
echo "Building ${TAG} with ${PREFIX}/Dockerfile…"
if [[ "${FROM}" = "binary" ]]; then
docker build --no-cache --build-arg "arch=${ARCH}" -t ${TAG} ${PREFIX}/
@ -21,6 +23,7 @@ else
docker build --no-cache -t ${TAG} ${PREFIX}/
fi
# Push image, if tag was specified
if [[ -n "${TRAVIS_TAG}" ]]; then
echo "${DOCKER_PASS}" | docker login -u="${DOCKER_USER}" --password-stdin