#!/bin/bash

# build images & push to hub

TAG=`node -p "require('./package.json').version"`
IMAGE="subjectrefresh/shortener"

echo "Building $IMAGE:$TAG"
docker build -t $IMAGE:$TAG . && \
docker tag $IMAGE:$TAG $IMAGE:latest && \
docker push $IMAGE:$TAG && \
docker push $IMAGE:latest

#!/bin/bash

# build images & push to hub

TAG=`node -p "require('./package.json').version"`
IMAGE="subjectrefresh/uptimebot"

echo "Building $IMAGE:$TAG"
docker build -t $IMAGE:$TAG . && \
docker tag $IMAGE:$TAG $IMAGE:latest && \
docker push $IMAGE:$TAG && \
docker push $IMAGE:latest
--- 
+++ 
@@ -3,7 +3,7 @@
 # build images & push to hub
 
 TAG=`node -p "require('./package.json').version"`
-IMAGE="subjectrefresh/uptimebot"
+IMAGE="subjectrefresh/shortener"
 
 echo "Building $IMAGE:$TAG"
 docker build -t $IMAGE:$TAG . && \
Fix incorrect hub image path
