Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Disable trace for docker login. #277

Merged
merged 1 commit into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions tools/travis/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@ IMAGE_PREFIX="testing"

export OPENWHISK_HOME=$WHISKDIR

# Login to hub.docker.com to get user specific pull rate.
if [ ! -z "${DOCKER_USER}" ] && [ ! -z "${DOCKER_PASSWORD}" ]; then
echo "Run docker login..."
echo ${DOCKER_PASSWORD} | docker login -u "${DOCKER_USER}" --password-stdin
fi
# run login in a subshell with disabled trace to avoid having credentials in the logs
# when trace is on (set -x)
(
set +x # disable trace in this subshell
# Login to hub.docker.com to get user specific pull rate.
if [ ! -z "${DOCKER_USER}" ] && [ ! -z "${DOCKER_PASSWORD}" ]; then
echo "Run docker login..."
echo ${DOCKER_PASSWORD} | docker login -u "${DOCKER_USER}" --password-stdin
fi
)

# Build OpenWhisk
cd $WHISKDIR
Expand Down
14 changes: 11 additions & 3 deletions tools/travis/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,17 @@ elif [ ${RUNTIME_VERSION} == "3.11" ]; then
RUNTIME="python3.11"
fi

if [[ ! -z ${DOCKER_USER} ]] && [[ ! -z ${DOCKER_PASSWORD} ]]; then
docker login -u "${DOCKER_USER}" -p "${DOCKER_PASSWORD}"
fi
# run login in a subshell with disabled trace to avoid having credentials in the logs
# when trace is on (set -x)
(
set +x # disable trace in this subshell
# Login to hub.docker.com to get user specific pull rate.
if [ ! -z "${DOCKER_USER}" ] && [ ! -z "${DOCKER_PASSWORD}" ]; then
echo "Run docker login..."
echo ${DOCKER_PASSWORD} | docker login -u "${DOCKER_USER}" --password-stdin
fi
)


if [[ ! -z ${RUNTIME} ]]; then
TERM=dumb ./gradlew \
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy