Skip to content
This repository has been archived by the owner on Dec 4, 2017. It is now read-only.

Commit

Permalink
Use DEVSHIFT_TAG_LEN to generate tag (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
vpavlin authored and gastaldi committed Aug 14, 2017
1 parent 1d941e3 commit 3ccb2c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cico_build_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ DOCKER_HUB_URL="openshiftio/launchpad-backend"
BUILDER_IMAGE="launchpad-backend-builder"
BUILDER_CONT="launchpad-backend-builder-container"
DEPLOY_IMAGE="launchpad-backend-deploy"
TAG_LENGTH=7

TARGET_DIR="target"

Expand Down Expand Up @@ -64,7 +63,7 @@ docker build -t ${DEPLOY_IMAGE} -f Dockerfile.deploy .

#PUSH
if [ -z $CICO_LOCAL ]; then
TAG=$(echo $GIT_COMMIT | cut -c1-${TAG_LENGTH})
TAG=$(echo $GIT_COMMIT | cut -c1-${DEVSHIFT_TAG_LEN})

tag_push "${REGISTRY_URL}:${TAG}" ${DEVSHIFT_USERNAME} ${DEVSHIFT_PASSWORD} ${REGISTRY_URI}
tag_push "${REGISTRY_URL}:latest" ${DEVSHIFT_USERNAME} ${DEVSHIFT_PASSWORD} ${REGISTRY_URI}
Expand Down

0 comments on commit 3ccb2c2

Please sign in to comment.