Skip to content

Commit 5f33b3b

Browse files
committed
Log in to DockerHub to increase rate limit
Closes gh-295
1 parent 9a74ac0 commit 5f33b3b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

ci/pipeline.yml

+7
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ anchors:
2121
ARTIFACTORY_SERVER: ((artifactory-server))
2222
ARTIFACTORY_USERNAME: ((artifactory-username))
2323
ARTIFACTORY_PASSWORD: ((artifactory-password))
24+
docker-hub-task-params: &docker-hub-task-params
25+
DOCKER_HUB_USERNAME: ((docker-hub-username))
26+
DOCKER_HUB_PASSWORD: ((docker-hub-password))
2427
resource_types:
2528
- name: artifactory-resource
2629
type: registry-image
@@ -114,6 +117,7 @@ jobs:
114117
timeout: ((task-timeout))
115118
file: git-repo/ci/tasks/build-project.yml
116119
params:
120+
<<: *docker-hub-task-params
117121
BRANCH: ((branch))
118122
- put: artifactory-repo
119123
params:
@@ -158,6 +162,7 @@ jobs:
158162
image: ci-image
159163
file: git-repo/ci/tasks/stage.yml
160164
params:
165+
<<: *docker-hub-task-params
161166
RELEASE_TYPE: M
162167
- put: artifactory-repo
163168
params:
@@ -176,6 +181,7 @@ jobs:
176181
image: ci-image
177182
file: git-repo/ci/tasks/stage.yml
178183
params:
184+
<<: *docker-hub-task-params
179185
RELEASE_TYPE: RC
180186
- put: artifactory-repo
181187
params:
@@ -194,6 +200,7 @@ jobs:
194200
image: ci-image
195201
file: git-repo/ci/tasks/stage.yml
196202
params:
203+
<<: *docker-hub-task-params
197204
RELEASE_TYPE: RELEASE
198205
- put: artifactory-repo
199206
params:

ci/scripts/common.sh

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
source /opt/concourse-java.sh
22

33
setup_symlinks
4+
5+
if [[ -n $DOCKER_HUB_USERNAME ]]; then
6+
docker login -u $DOCKER_HUB_USERNAME -p $DOCKER_HUB_PASSWORD
7+
fi
8+
49
cleanup_maven_repo "io.spring.javaformat"

0 commit comments

Comments
 (0)