Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Build to continue if cache pull fails #250

Merged
merged 3 commits into from
Jan 12, 2019
Merged

Allow Build to continue if cache pull fails #250

merged 3 commits into from
Jan 12, 2019

Conversation

john681611
Copy link
Contributor

##Problem
Builds would fail if the cached pull failed, this caused problems when first running an automated build and no image exists in the repository.

Solution

Stop --cache-from being added if the docker pull fails

Testing

Added tests for basic caching parameter and what happens if it fails to pull

Fixes #222

@pivotal-issuemaster
Copy link

@john681611 Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-issuemaster
Copy link

@john681611 Thank you for signing the Contributor License Agreement!

@stijndehaes
Copy link

Any update on when this will be merged?

Copy link
Member

@vito vito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stijndehaes Sorry for the delay, holiday season really slowed things down!

assets/out Outdated
@@ -147,7 +147,7 @@ elif [ -n "$build" ]; then
cache_from_args=()

if [ "$cache" = "true" ]; then
docker_pull "${repository}:${cache_tag}"
docker_pull "${repository}:${cache_tag}" &&

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

tests/out_test.go Show resolved Hide resolved
john681611 added 3 commits January 11, 2019 17:09
Copy link
Member

@vito vito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great, thanks!

@vito vito merged commit fb024bb into concourse:master Jan 12, 2019
@john681611 john681611 deleted the cache-failover branch January 13, 2019 12:28
@john681611
Copy link
Contributor Author

Cool thanks guys, Q: does this get auto released?

@vito
Copy link
Member

vito commented Jan 15, 2019

@john681611 Doesn't get auto-released, I just kicked off a build for v1.1 though!

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.

4 participants