Skip to content

Fix build cache for PR builds#36

Open
cjolowicz wants to merge 2 commits intomasterfrom
fix-build-cache-for-pr-builds
Open

Fix build cache for PR builds#36
cjolowicz wants to merge 2 commits intomasterfrom
fix-build-cache-for-pr-builds

Conversation

@cjolowicz
Copy link
Copy Markdown
Owner

@cjolowicz cjolowicz commented Sep 20, 2019

Closes #18

Claudio Jolowicz added 2 commits September 20, 2019 21:02
- Pull branch image into Docker cache for PR builds

- Do not overwrite master cache image from PR builds

For PR builds, use the branch from which the PR originated, not the
target branch. This means that the same image is used for the Docker
build cache as for the corresponding branch build.

In Travis CI, the source branch is indicated by the
TRAVIS_PULL_REQUEST_BRANCH environment variable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Do not overwrite master cache image from PR builds

1 participant