photoprism/scripts/docker-login.sh
Michael Mayer f5b67c34d4 CI: Move from Travis CI to self-hosted Drone CI
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-08-13 17:32:28 +02:00

7 lines
192 B
Bash
Executable file

#!/usr/bin/env bash
if [[ -z $DOCKER_PASSWORD ]] || [[ -z $DOCKER_USERNAME ]]; then
docker login
else
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
fi