photoprism/scripts/docker-push.sh
Michael Mayer c5ee0fee48 Add darktable development docker image #62
- Improved build scripts and Dockerfile
- broadwayd can be used as display server for darktable or other GTK based software
2018-11-12 06:58:39 +01:00

19 lines
No EOL
518 B
Bash
Executable file

#!/usr/bin/env bash
if [[ -z $DOCKER_PASSWORD ]] || [[ -z $DOCKER_USERNAME ]]; then
echo "DOCKER_PASSWORD and DOCKER_USERNAME not set in your environment";
exit 1
fi
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
if [[ -z $1 ]] || [[ -z $2 ]]; then
echo "Please provide a container image name and version" 1>&2
exit 1
else
echo "Pushing 'photoprism/$1:$2' to Docker hub...";
docker push photoprism/$1:latest
docker push photoprism/$1:$2
echo "Done"
fi