git.iko.soy/typeable/octopod
on nixify-control-scripts help sign in
typeable/octopod/release.sh
20 lines 421 B history raw
1#!/usr/bin/env bash
3if test -z "$1"
4then
5 echo "usage:"
6 echo " $0 <version> <version> will be the tag on Docker Hub. Use the format v1.0"
7 exit 1
8fi
10echo "Releasing version $1"
12for x in octopod octo
13do
14 echo "Releasing $x"
15 docker pull typeable/$x:latest
16 docker tag typeable/$x:latest typeable/$x:$1
17 docker push typeable/$x:$1
18 docker rmi typeable/$x:latest
19 docker rmi typeable/$x:$1
20done