tvl-depot/third_party/apereo-cas/overlay/docker-push.sh
2020-07-05 19:17:12 +00:00

12 lines
No EOL
411 B
Bash
Executable file

#!/bin/bash
read -p "Docker username: " docker_user
read -s -p "Docker password: " docker_psw
echo "$docker_psw" | docker login --username "$docker_user" --password-stdin
image_tag=(`cat gradle.properties | grep "cas.version" | cut -d= -f2`)
echo "Pushing CAS docker image tagged as v$image_tag to apereo/cas..."
docker push apereo/cas:"v$image_tag" \
&& echo "Pushed apereo/cas:v$image_tag successfully.";