From 09d46e77452c5dabf6f3de00595da250dd80f4ac Mon Sep 17 00:00:00 2001
From: Rohith <gambol99@gmail.com>
Date: Mon, 22 Feb 2016 18:37:35 +0000
Subject: [PATCH] - moving to version 1.0.0-rc3

---
 Makefile | 10 ++++++++--
 doc.go   |  2 +-
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index b83b0fa..3b03145 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,9 @@
 NAME=keycloak-proxy
 AUTHOR=gambol99
 HARDWARE=$(shell uname -m)
+REGISTRY=docker.io
 GOVERSION=1.6.0
+SUDO=sudo
 GIT_COMMIT=$(shell git log --pretty=format:'%h' -n 1)
 ROOT_DIR=${PWD}
 VERSION=$(shell awk '/version.*=/ { print $$3 }' doc.go | sed 's/"//g')
@@ -30,12 +32,16 @@ static: golang deps
 
 docker-build:
 	@echo "--> Compiling the project"
-	sudo docker run --rm -v ${ROOT_DIR}:/go/src/github.com/gambol99/keycloak-proxy \
+	${SUDO} docker run --rm -v ${ROOT_DIR}:/go/src/github.com/gambol99/keycloak-proxy \
 		-w /go/src/github.com/gambol99/keycloak-proxy -e GOOS=linux golang:${GOVERSION} make static
 
 docker: static
 	@echo "--> Building the docker image"
-	sudo docker build -t docker.io/${AUTHOR}/${NAME}:${VERSION} .
+	${SUDO} docker build -t ${REGISTRY}/${AUTHOR}/${NAME}:${VERSION} .
+
+docker-push:
+	@echo "--> Pushing the docker images to the registry"
+	${SUDO} docker push ${REGISTRY}/${AUTHOR}/${NAME}:${VERSION}
 
 release: static
 	mkdir -p release
diff --git a/doc.go b/doc.go
index 7a5d408..b169277 100644
--- a/doc.go
+++ b/doc.go
@@ -22,7 +22,7 @@ import (
 
 const (
 	prog        = "keycloak-proxy"
-	version     = "v1.0.0-rc2"
+	version     = "v1.0.0-rc3"
 	author      = "Rohith"
 	email       = "gambol99@gmail.com"
 	description = "is a proxy using the keycloak service for auth and authorization"
-- 
GitLab