Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (14 sloc) 659 Bytes
if [ -f "$VRSNFILE" ]; then
# Get new image version from update-generated file and build new image.
tag=$(cat "$VRSNFILE")
echo "Image${PROJECT}/${IMGNAME}:${tag} NOT found. Building new..."
docker build -t "${PROJECT}/${IMGNAME}:${tag}" -t "${PROJECT}/${IMGNAME}" -f "$DCRFILE" .
docker push "${PROJECT}/${IMGNAME}:${tag}"
docker push "${PROJECT}/${IMGNAME}"
# Get image version from Dockerfile
line=$(sed -n -e "/$SEARCHSTR /p" "$DCRFILE")
tag=$(echo "${line##* }")
echo "Image${PROJECT}/${IMGNAME}:$tag exists in GCR, proceeding without new build..."
You can’t perform that action at this time.