From 3519c744a8cb2d03a298c3ba20bf9a07cc16a864 Mon Sep 17 00:00:00 2001 From: Ashmita Bohara Date: Mon, 30 Nov 2020 12:18:47 +0800 Subject: [PATCH] Fix issue with all-in-one build Signed-off-by: Ashmita Bohara --- scripts/travis/upload-to-docker.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/travis/upload-to-docker.sh b/scripts/travis/upload-to-docker.sh index 65d49a6ff74..607de83cf6c 100755 --- a/scripts/travis/upload-to-docker.sh +++ b/scripts/travis/upload-to-docker.sh @@ -17,7 +17,7 @@ elif [[ $BRANCH =~ ^v([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then else TAG="${BRANCH}" fi -echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, REPO=$REPO, BRANCH=$BRANCH, TAG=$TAG, IMAGE=$IMAGE" +echo "REPO=$REPO, BRANCH=$BRANCH, TAG=$TAG, IMAGE=$IMAGE" # add major, major.minor and major.minor.patch tags if [[ -n $major ]]; then @@ -38,7 +38,7 @@ else docker push $REPO fi -SNAPSHOT_IMAGE="$REPO-snapshot:$TRAVIS_COMMIT" +SNAPSHOT_IMAGE="$REPO-snapshot:$GITHUB_SHA" echo "Pushing snapshot image $SNAPSHOT_IMAGE" docker tag $IMAGE $SNAPSHOT_IMAGE docker push $SNAPSHOT_IMAGE