Skip to content

Commit e7c7a13

Browse files
authored
Login docker on cci (#196)
Signed-off-by: Pavol Loffay <[email protected]>
1 parent 18d25d1 commit e7c7a13

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.circleci/config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ commands:
1414
- v1-dependencies-{{ checksum "/tmp/checksum.txt" }}
1515
# fallback to using the latest cache if no exact match is found
1616
- v1-dependencies-
17+
docker_login:
18+
description: "Login to dockerhub with readonly credentials"
19+
steps:
20+
- run:
21+
name: Dockerhub login
22+
command: echo $DOCKERHUB_PASSWORD | docker login --username $DOCKERHUB_USERNAME --password-stdin
1723
populate_and_save_cache:
1824
description: "Downloads all gradle dependencies and uploads cache for later use"
1925
steps:
@@ -70,6 +76,7 @@ jobs:
7076
- setup_build_environment
7177
- setup_remote_docker:
7278
version: 19.03.13
79+
- docker_login
7380
- run: echo "Releasing version" && ./gradlew printVersion
7481
- run: ./gradlew publish
7582
- run: DOCKER_TAG=${CIRCLE_TAG} make docker docker-push

0 commit comments

Comments
 (0)