Correctly build forks in Travis
The CI script goes looking for the branch to which a commit was pushed, but was applying the branch name to moby/buildkit even if being built on a different fork. Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>v0.8
parent
94696710fa
commit
bbd372d00e
|
@ -32,7 +32,7 @@ if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then
|
||||||
currentref="git://github.com/moby/buildkit#refs/pull/$TRAVIS_PULL_REQUEST/merge"
|
currentref="git://github.com/moby/buildkit#refs/pull/$TRAVIS_PULL_REQUEST/merge"
|
||||||
cacheref="cicache.buildk.it/moby/buildkit/pr$TRAVIS_BUILD_ID"
|
cacheref="cicache.buildk.it/moby/buildkit/pr$TRAVIS_BUILD_ID"
|
||||||
elif [ -n "$TRAVIS_BRANCH" ]; then
|
elif [ -n "$TRAVIS_BRANCH" ]; then
|
||||||
currentref="git://github.com/moby/buildkit#$TRAVIS_BRANCH"
|
currentref="git://github.com/$TRAVIS_REPO_SLUG#$TRAVIS_BRANCH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue