-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Update cli-functions.sh #3732
Update cli-functions.sh #3732
Conversation
I think we have some logic that can detect if the pull was successful. I will find that and we will return if you really pull and not return otherwise. |
Build # 1633 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/1633/ to view the results. |
@TylerJewell @benoitf I think we should not check the date, because date will be always obosolete if we will not have changes to CLI. do you know is it possible to get image ID? from docker hub? what it we will compare local image ID and remote it they are different we do pull. (not sure if that works) |
@riuvshin unfornatelly the digests are not available on dockerhub. This is why at a time we wanted that ci push that information somewhere each time a nightly was pushed |
@benoitf does digest -eq image id? maybe image id is available.. |
no we don't have it until we pull image locally :-/ |
Why don't we do a |
@TylerJewell that could work, or we can lol it seems it is exactly the same :D |
I have a branch that is working with the digest comparison. Let me push it up and see what people think. I think that the digest check is a more reliable version for us to use. |
Ok - so I have updated the branch with a different form of check.
|
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/1635/ |
always pulling by default for nightly seems to be the best option. |
Happy to add that improvement if you don't think the --fast optimization is enough. I can only place that check into directories that have been initialized so it is not universal. I like just having the fast option. |
using fast option is OK for now we can improve later based on users feedback |
Let's get @riuvshin input and if he is ok will merge. |
+1 (i cant approve this ) |
* check digests
needed for #3684
remove return statement due to issue where there is no changes to CLI nightly image CLI think that is obsolete but it is actual as image was not changed.