-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrelease_tag.sh
executable file
·26 lines (22 loc) · 941 Bytes
/
release_tag.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash
set -e
# FIXME: Update this script to do something like this, especially the ROOT var
# 6/24/2017
# readonly ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
# docker build -f $ROOT/Dockerfile.oracle-jdk -t islandora/claw-karaf:oracle-jdk $ROOT
# docker build -f $ROOT/Dockerfile.open-jdk -t islandora/claw-karaf:open-jdk $ROOT
# # Open JDK is the default implementation.
# docker tag islandora/claw-karaf:open-jdk islandora/claw-karaf:latest
if [[ "$1" == "" ]] ; then
echo "You did not specify a new tag for the container you're build."
echo "Please try again with something like v1.1.0"
return 3
else
TAG_VERSION="$1"
fi
ID=$(docker build -q -t bossjones/boss-docker-jhbuild-pygobject3:$TAG_VERSION .)
SHA=$(echo $ID | cut -d\: -f2)
echo $ID
echo $SHA
docker tag $ID bossjones/boss-docker-jhbuild-pygobject3:$TAG_VERSION
docker push bossjones/boss-docker-jhbuild-pygobject3:$TAG_VERSION