]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible: add docker hub credentials 1610/head
authorDimitri Savineau <dsavinea@redhat.com>
Tue, 7 Jul 2020 15:10:00 +0000 (11:10 -0400)
committerDimitri Savineau <dsavinea@redhat.com>
Tue, 7 Jul 2020 15:10:00 +0000 (11:10 -0400)
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 <dsavinea@redhat.com>
ceph-ansible-nightly/config/definitions/ceph-ansible-nightly.yml
ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml

index 9294f5ffa3797af8bf0d9aaca85bd5a683a17e69..865c14f75ada692b25169af10c0eebea682d7e95 100644 (file)
           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
index 96a121cb2373fd02b2f3cf9a05a0a386c9c8bae8..e228df1c913330cf75ca14d5293fbfde788f48dd 100644 (file)
           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'
           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