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

fix: fix local artifact output locations when BUILDKIT_MULTI_PLATFORM=1 #458

Merged

Conversation

utkuozdemir
Copy link
Member

@utkuozdemir utkuozdemir commented Nov 6, 2024

Passing BUILDKIT_MULTI_PLATFORM=1 to buildkit for each build (introduced in 7db4f5e) in COMMON_ARGS caused some unwanted changes in the output behavior when we ran a single-platform build: it started to output the files to locations same as to multi-platform format, <os>_<arch>/<filename>, instead of just <filename>.

Fix this by running a small script to move these files to one upper directory after a local build.

@utkuozdemir utkuozdemir force-pushed the fix-multiplatform-local-output branch 2 times, most recently from 1becf29 to c8d2ffa Compare November 6, 2024 12:41
…M=1`

Passing `BUILDKIT_MULTI_PLATFORM=1` to buildkit for each build (introduced in 7db4f5e) in `COMMON_ARGS` caused some unwanted changes in the output behavior when we ran a single-platform build: it started to output the files to locations same as to multi-platform format, `<os>_<arch>/<filename>`, instead of just `<filename>`.

Fix this by running a small script to move these files to one upper directory after a local build.

Signed-off-by: Utku Ozdemir <utku.ozdemir@siderolabs.com>
@utkuozdemir utkuozdemir force-pushed the fix-multiplatform-local-output branch from c8d2ffa to 1fc767a Compare November 6, 2024 12:47
@utkuozdemir utkuozdemir changed the title fix: pass BUILDKIT_MULTI_PLATFORM=1 only on image builds fix: fix local artifact output locations when BUILDKIT_MULTI_PLATFORM=1 Nov 6, 2024
@utkuozdemir
Copy link
Member Author

/m

1 similar comment
@utkuozdemir
Copy link
Member Author

/m

@talos-bot talos-bot merged commit 1fc767a into siderolabs:main Nov 6, 2024
14 checks passed
utkuozdemir added a commit to utkuozdemir/sidero-talos-metal-agent that referenced this pull request Nov 6, 2024
Fix generating checksums thanks to the fix in siderolabs/kres#458.

Signed-off-by: Utku Ozdemir <utku.ozdemir@siderolabs.com>
utkuozdemir added a commit to utkuozdemir/sidero-talos-metal-agent that referenced this pull request Nov 6, 2024
Fix generating checksums thanks to the fix in siderolabs/kres#458.

Signed-off-by: Utku Ozdemir <utku.ozdemir@siderolabs.com>
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