Skip to content

Conversation

@reshnm
Copy link
Contributor

@reshnm reshnm commented May 19, 2025

What this PR does / why we need it:

Previously the (non-multi) image tasks have build images based on the OS variable which was defaulted to $(go env GOOS).
When run on macOS this resulted in darwin. Neither othe base image that is being used nor docker under macOS supports darwin images. In general docker always runs linux images even under macOS or windows in a virtual environment.
Therefore id doesn't make sense to build images based on the $(go env GOOS) result.

Instead there is now a seperate variable IMAGE_OS which is set to linux by default, but can be overwritten by the user.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:

Build linux images by default

@reshnm reshnm changed the title feat: use linux as default when builing image fix: use linux as default when builing image May 19, 2025
@reshnm reshnm merged commit 80bfca5 into main May 19, 2025
3 checks passed
@maximiliantech maximiliantech deleted the only-build-linux branch May 19, 2025 09:10
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.

3 participants