about summary refs log tree commit diff
path: root/docker-push.sh
blob: ca7b784e6dc864164da616ec70be2a32090a4540 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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.";