File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ anchors:
21
21
ARTIFACTORY_SERVER : ((artifactory-server))
22
22
ARTIFACTORY_USERNAME : ((artifactory-username))
23
23
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))
24
27
resource_types :
25
28
- name : artifactory-resource
26
29
type : registry-image
@@ -114,6 +117,7 @@ jobs:
114
117
timeout : ((task-timeout))
115
118
file : git-repo/ci/tasks/build-project.yml
116
119
params :
120
+ << : *docker-hub-task-params
117
121
BRANCH : ((branch))
118
122
- put : artifactory-repo
119
123
params :
@@ -158,6 +162,7 @@ jobs:
158
162
image : ci-image
159
163
file : git-repo/ci/tasks/stage.yml
160
164
params :
165
+ << : *docker-hub-task-params
161
166
RELEASE_TYPE : M
162
167
- put : artifactory-repo
163
168
params :
@@ -176,6 +181,7 @@ jobs:
176
181
image : ci-image
177
182
file : git-repo/ci/tasks/stage.yml
178
183
params :
184
+ << : *docker-hub-task-params
179
185
RELEASE_TYPE : RC
180
186
- put : artifactory-repo
181
187
params :
@@ -194,6 +200,7 @@ jobs:
194
200
image : ci-image
195
201
file : git-repo/ci/tasks/stage.yml
196
202
params :
203
+ << : *docker-hub-task-params
197
204
RELEASE_TYPE : RELEASE
198
205
- put : artifactory-repo
199
206
params :
Original file line number Diff line number Diff line change 1
1
source /opt/concourse-java.sh
2
2
3
3
setup_symlinks
4
+
5
+ if [[ -n $DOCKER_HUB_USERNAME ]]; then
6
+ docker login -u $DOCKER_HUB_USERNAME -p $DOCKER_HUB_PASSWORD
7
+ fi
8
+
4
9
cleanup_maven_repo " io.spring.javaformat"
You can’t perform that action at this time.
0 commit comments