use -p with docker
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Torma Kristóf 2022-01-31 21:58:30 +01:00
parent a3a33ac14c
commit c2d8156446

View File

@ -19,7 +19,7 @@ steps:
from_secret: DOCKERHUB_PASSWORD from_secret: DOCKERHUB_PASSWORD
commands: commands:
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin registry.kmlabz.com - echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin registry.kmlabz.com
- echo "$DOCKERHUB_PASSWORD" | docker login --username "$DOCKERHUB_USERNAME" --password-stdin - docker login --username "$DOCKERHUB_USERNAME" -p "$DOCKERHUB_PASSWORD"
- docker build -t registry.kmlabz.com/$DRONE_REPO . - docker build -t registry.kmlabz.com/$DRONE_REPO .
- docker build -t registry.kmlabz.com/$DRONE_REPO:$DRONE_BUILD_NUMBER . - docker build -t registry.kmlabz.com/$DRONE_REPO:$DRONE_BUILD_NUMBER .
- docker build -t $DRONE_REPO . - docker build -t $DRONE_REPO .