mirror of
https://github.com/Retropex/docker-bitcoind.git
synced 2025-05-24 19:12:36 +02:00
add logging
This commit is contained in:
parent
263d643e59
commit
fea1df69a9
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user