Skip to content

Commit 9eee4ef

Browse files
Use --password-stdin to docker login
1 parent 994679c commit 9eee4ef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ deploy:docker:
7373
script:
7474
- sh scripts/replace_templates.sh ${CI_JOB_TOKEN}
7575
- docker info
76-
- docker login -u $BITSENSOR_USERNAME -p $BITSENSOR_PASSWORD artifacts.bitsensor.io:1443
76+
- echo $BITSENSOR_PASSWORD | docker login -u $BITSENSOR_USERNAME --password-stdin artifacts.bitsensor.io:1443
7777
- docker build -t elastalert .
7878
- docker tag elastalert artifacts.bitsensor.io:1443/elastalert:latest
7979
- docker tag elastalert artifacts.bitsensor.io:1443/elastalert:$(git describe --abbrev=0)
@@ -89,7 +89,7 @@ deploy:docker:snapshot:
8989
script:
9090
- sh scripts/replace_templates.sh ${CI_JOB_TOKEN}
9191
- docker info
92-
- docker login -u $BITSENSOR_USERNAME -p $BITSENSOR_PASSWORD artifacts.bitsensor.io:1443
92+
- echo $BITSENSOR_PASSWORD | docker login -u $BITSENSOR_USERNAME --password-stdin artifacts.bitsensor.io:1443
9393
- docker build -t elastalert .
9494
- docker tag elastalert artifacts.bitsensor.io:1443/elastalert:snapshot
9595
- docker push artifacts.bitsensor.io:1443/elastalert:snapshot
@@ -102,7 +102,7 @@ deploy:docker-hub:
102102
stage: deploy
103103
script:
104104
- docker info
105-
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
105+
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
106106
- docker build -t elastalert .
107107
- docker tag elastalert bitsensor/elastalert:latest
108108
- docker tag elastalert bitsensor/elastalert:$(git describe --abbrev=0)
@@ -117,7 +117,7 @@ deploy:docker-hub:snapshot:
117117
stage: deploy
118118
script:
119119
- docker info
120-
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
120+
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
121121
- docker build -t elastalert .
122122
- docker tag elastalert bitsensor/elastalert:snapshot
123123
- docker push bitsensor/elastalert:snapshot

0 commit comments

Comments
 (0)