Push image to docker hub from circleci
@@ -38,7 +38,10 @@ deployment:
owner: redhat-ipaas
branch: master
commands:
- - curl -sSL https://github.com/openshift/origin/releases/download/v1.4.0-rc1/openshift-origin-client-tools-v1.4.0-rc1.b4e0954-linux-64bit.tar.gz | sudo tar xz -C /usr/bin --strip-components 1
+ - docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD -e $DOCKER_EMAIL
+ - docker tag ipaas/runtime:latest rhipaas/ipaas-rest:latest
+ - docker push rhipaas/ipaas-rest:latest | cat -
+ - curl -sSL https://github.com/openshift/origin/releases/download/v1.4.1/openshift-origin-client-tools-v1.4.1-3f9807a-linux-64bit.tar.gz | sudo tar xz -C /usr/bin --strip-components 1
- oc login --server=${OPENSHIFT_APISERVER} --token=${OPENSHIFT_TOKEN}
- oc project staging
- docker run -v ${HOME}/.kube:/root/.kube -v $(pwd):/root/src -v ${HOME}/.m2/repository:/root/.m2/repository -v /var/run/docker.sock:/var/run/docker.sock -w /root/src maven:3.3.9-jdk-8 mvn -pl runtime -Pfabric8 fabric8:deploy
