Skip to content

Commit

Permalink
Modify image build
Browse files Browse the repository at this point in the history
  • Loading branch information
goldarte committed Oct 21, 2019
1 parent c8084b5 commit bbb2c90
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions builder/image-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,8 @@ img-resize ${IMAGE_PATH} max '5G'
# Checkout to tag's branch if built with travis tag
if [[ ! -z ${TRAVIS_TAG} ]]; then
cd ${REPO_DIR}
REMOTE_BRANCH="$(git branch -r --contains ${TRAVIS_TAG} | sed -n 1p | cut -d ' ' -f 5)"
BRANCH="$(echo ${REMOTE_BRANCH} | cut -d '/' -f 2)"
echo_stamp "Checkout to ${REMOTE_BRANCH} from ${TRAVIS_TAG}" "INFO"
git branch ${BRANCH} ${REMOTE_BRANCH}
git checkout ${BRANCH}
echo_stamp "Checkout to origin/pinnochio from ${TRAVIS_TAG}" "INFO"
git checkout --track origin/pinnochio
cd /
fi

Expand Down

0 comments on commit bbb2c90

Please sign in to comment.