From: Dimitri Savineau Date: Tue, 7 Jul 2020 15:10:00 +0000 (-0400) Subject: ceph-ansible: add docker hub credentials X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9a03ae35c8fd0770fee83c24ff00ec5969271d4b;p=ceph-build.git ceph-ansible: add docker hub credentials To avoid to be rated limited by the docker.io registry when pulling the ceph container image, we need to use an authenticated user. https://docs.docker.com/docker-hub/download-rate-limit/ Signed-off-by: Dimitri Savineau --- diff --git a/ceph-ansible-nightly/config/definitions/ceph-ansible-nightly.yml b/ceph-ansible-nightly/config/definitions/ceph-ansible-nightly.yml index 9294f5ff..865c14f7 100644 --- a/ceph-ansible-nightly/config/definitions/ceph-ansible-nightly.yml +++ b/ceph-ansible-nightly/config/definitions/ceph-ansible-nightly.yml @@ -168,3 +168,13 @@ artifacts: 'logs/**' allow-empty: true latest-only: false + + wrappers: + - inject-passwords: + global: true + mask-password-params: true + - credentials-binding: + - username-password-separated: + credential-id: ceph-ansible-upstream-ci + username: DOCKER_HUB_USERNAME + password: DOCKER_HUB_PASSWORD diff --git a/ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml b/ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml index 96a121cb..e228df1c 100644 --- a/ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml +++ b/ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml @@ -192,6 +192,16 @@ allow-empty: true latest-only: false + wrappers: + - inject-passwords: + global: true + mask-password-params: true + - credentials-binding: + - username-password-separated: + credential-id: ceph-ansible-upstream-ci + username: DOCKER_HUB_USERNAME + password: DOCKER_HUB_PASSWORD + - job-template: name: 'ceph-ansible-prs-{distribution}-{deployment}-{scenario}' id: 'ceph-ansible-prs-common-trigger' @@ -289,3 +299,13 @@ artifacts: 'logs/**' allow-empty: true latest-only: false + + wrappers: + - inject-passwords: + global: true + mask-password-params: true + - credentials-binding: + - username-password-separated: + credential-id: ceph-ansible-upstream-ci + username: DOCKER_HUB_USERNAME + password: DOCKER_HUB_PASSWORD