-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Fix build-all-in-one-image script #4819
Fix build-all-in-one-image script #4819
Conversation
Signed-off-by: albertteoh <see.kwang.teoh@gmail.com>
Codecov ReportAll modified lines are covered by tests ✅ see 2 files with indirect coverage changes 📢 Thoughts on this report? Let us know!. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
usually double [[]]
are used for expressions
if it's missing from docker hub, the workflow should've failed, let's make sure this happens |
@@ -54,7 +54,7 @@ bash scripts/build-upload-a-docker-image.sh -b -c all-in-one -d cmd/all-in-one - | |||
|
|||
|
|||
#do not run debug image build when it is pr-only | |||
if ["$mode" != "pr-only"]; then | |||
if [ "$mode" != "pr-only" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if [ "$mode" != "pr-only" ]; then | |
if [[ "$mode" != "pr-only" ]]; then |
I think the reason there is no 1.50 image is because the build did not recognize semver tag and published this as
|
So the workflow was indeed successful. My other fix should solve that, hopefully. |
I was wondering why we didn't get a non-zero exit status on this failure even though we have From this SO answer:
So since the I'm not sure if there's anything reasonable we can do except making sure we use the correct bash syntax. |
Perhaps we could do something to prevent this sort of error like using https://github.com/koalaman/shellcheck (github action available: https://github.com/marketplace/actions/shellcheck). What do you think? |
great idea -- #4822 |
Description of the changes
How was this change tested?
Checklist