about summary refs log tree commit diff
path: root/docker-push.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker-push.sh')
-rwxr-xr-xdocker-push.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/docker-push.sh b/docker-push.sh
new file mode 100755
index 000000000000..ca7b784e6dc8
--- /dev/null
+++ b/docker-push.sh
@@ -0,0 +1,12 @@
+#!/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.";
\ No newline at end of file