Skip to content

Commit

Permalink
adding support for TAG environment variable (GoogleCloudPlatform#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
sharifelgamal authored Mar 22, 2017
1 parent b746105 commit 50f11f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jenkins_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ gcloud docker -- version

RUNTIME_NAME="nodejs"

CANDIDATE_NAME=`date +%Y-%m-%d_%H_%M`
if [ -z "${TAG}" ]; then
TAG=`date +%Y-%m-%d_%H_%M`
fi

CANDIDATE_NAME="${TAG}"
echo "CANDIDATE_NAME:${CANDIDATE_NAME}"
export IMAGE="${DOCKER_NAMESPACE}/${RUNTIME_NAME}:${CANDIDATE_NAME}"

Expand Down

0 comments on commit 50f11f1

Please sign in to comment.