الملفات
graphhopper-docker-image-push/.github/build-and-upload.sh
zstadler f06f2beb48 Build scripts refactoring (#33)
* Build scripts refactoring

`.github/build-and-upload.sh` to use `build.sh`
Related to  #32

* Update build.sh

Following review comments
2023-01-12 11:24:39 +02:00

13 أسطر
428 B
Bash
ملف تنفيذي

#!/bin/bash
echo "Buidling and pushing israelhikingmap/graphhopper:latest"
./build.sh --push
TAG=`cd graphhopper; git for-each-ref --sort=committerdate refs/tags | sed -n '$s/.*\///p'`
if docker manifest inspect "israelhikingmap/graphhopper:${TAG}" >/dev/null; then
echo "No need to push existing version: ${TAG}";
else
echo "Buidling and pushing israelhikingmap/graphhopper:${TAG}"
./build.sh --push "${TAG}"
fi