Skip to content

Commit

Permalink
Tweak update-docker-images.sh (#802)
Browse files Browse the repository at this point in the history
Seems the 'TAG=…' lines fails on the CI, when HEAD doesn't point to a
tag.
  • Loading branch information
alexarchambault authored Apr 21, 2021
1 parent 1e8387b commit 2d86dba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/update-docker-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ DOCKER_REPO=almondsh/almond

echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin

TAG="$(git describe --exact-match --tags --always "$(git rev-parse HEAD)")"
TAG="$(git describe --exact-match --tags --always "$(git rev-parse HEAD)" || true)"

if [[ ${TAG} != v* ]]; then
echo "Not on a git tag, creating snapshot image"
Expand Down Expand Up @@ -40,5 +40,3 @@ else
docker tag ${IMAGE_NAME} ${DOCKER_REPO}:latest
docker push ${DOCKER_REPO}:latest
fi


0 comments on commit 2d86dba

Please sign in to comment.