diff options
author | Stefan Scherer <stefan.scherer@docker.com> | 2021-02-11 17:52:56 +0100 |
---|---|---|
committer | Stefan Scherer <stefan.scherer@docker.com> | 2021-02-11 18:40:37 +0100 |
commit | 6de6936f5d2d4decb2150f1816d4dd94b73649f1 (patch) | |
tree | 75831d78f2cbf397ae7ae2c0df6e05ddb7157cec | |
parent | 407dcfd65ba81e8974c3dab5dd9499014e0f8b7f (diff) | |
download | docker-py-6de6936f5d2d4decb2150f1816d4dd94b73649f1.tar.gz |
Use DOCKER_CONFIG to have creds in dind environment
Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
-rw-r--r-- | Jenkinsfile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index e7c3321..b85598f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -95,7 +95,7 @@ def runTests = { Map settings -> -e 'DOCKER_TEST_API_VERSION=${apiVersion}' \\ --network ${testNetwork} \\ --volumes-from ${dindContainerName} \\ - -v ~/.docker/config.json:/root/.docker/config.json \\ + -v $DOCKER_CONFIG/config.json:/root/.docker/config.json \\ ${testImage} \\ py.test -v -rxs --cov=docker --ignore=tests/ssh tests/ """ @@ -111,7 +111,7 @@ def runTests = { Map settings -> -e 'DOCKER_TEST_API_VERSION=${apiVersion}' \\ --network ${testNetwork} \\ --volumes-from ${dindContainerName} \\ - -v ~/.docker/config.json:/root/.docker/config.json \\ + -v $DOCKER_CONFIG/config.json:/root/.docker/config.json \\ ${testImage} \\ py.test -v -rxs --cov=docker tests/ssh """ |