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

Feature Request: Detect if image does not exist #38

Open
rtvu opened this issue Jul 14, 2024 · 2 comments
Open

Feature Request: Detect if image does not exist #38

rtvu opened this issue Jul 14, 2024 · 2 comments

Comments

@rtvu
Copy link

rtvu commented Jul 14, 2024

Currently, if the provided image does not exist, then check_if_library will receive a http 404 response and the script exit with an error.

Would it be possible to handle the use case when an image does not exist. If an image does not exist, it may be desirable to build this image.

Maybe add a boolean for image-does-not-exist as an output?

@lucacome
Copy link
Owner

Hi @rtvu

Do you plan to always run the build step after the action, even on error? Because if the image doesn't exist it will always throw an error, unless we add an input to ignore pull errors or something like that.

@rtvu
Copy link
Author

rtvu commented Oct 11, 2024

I would only want to build if the error is due to image does not exist.

My use case is i want to use the flow to both update an existing image as well as create the initial image.

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

No branches or pull requests

2 participants