#!/bin/bash

set -e

DOCKER_IMAGE=boshcpi/letsencrypt

docker login

echo "Download latest docker image..."
docker pull $DOCKER_IMAGE

echo "Pushing latest to previous..."
docker tag $DOCKER_IMAGE $DOCKER_IMAGE:previous

echo "Building docker image..."
docker build -t $DOCKER_IMAGE .

echo "Pushing docker image to '$DOCKER_IMAGE'..."
docker push $DOCKER_IMAGE

#!/bin/bash

set -e

DOCKER_IMAGE=kiemes/lets-encrypt

docker login

echo "Download latest docker image..."
docker pull $DOCKER_IMAGE

echo "Pushing latest to previous..."
docker tag $DOCKER_IMAGE $DOCKER_IMAGE:previous

echo "Building docker image..."
docker build -t $DOCKER_IMAGE .

echo "Pushing docker image to '$DOCKER_IMAGE'..."
docker push $DOCKER_IMAGE

--- 
+++ 
@@ -2,7 +2,7 @@
 
 set -e
 
-DOCKER_IMAGE=kiemes/lets-encrypt
+DOCKER_IMAGE=boshcpi/letsencrypt
 
 docker login
 
Move to official Docker repository

[#150592677](https://www.pivotaltracker.com/story/show/150592677)

Signed-off-by: Florian Nachtigall <da0e822b67ef154a118f514785d782d9f0817746@sap.com>
