-
Notifications
You must be signed in to change notification settings - Fork 28
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
ci: simplify the script/package to speed up local development #110
Conversation
6a9d138
to
9a68da7
Compare
Signed-off-by: Jack Yu <jack.yu@suse.com>
@@ -1,6 +1,9 @@ | |||
# syntax=docker/dockerfile:1.7.0 |
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.
This syntax is for this error ERROR: failed to solve: failed to process “${TARGETPLATFORM#linux/}“: unsupported modifier (#) in substitution
when running ./scripts/packge locally.
doc - https://docs.docker.com/reference/dockerfile/#environment-replacement
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.
LGTM. Thank you.
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.
lgtm. thanks.
I tested following situations, all work:
Through this change, it can speed up the local development which run ./scripts/package without waiting multiple platform build, and the image is still usable in linux/amd64 and linux/arm64.
Related Issue: harvester/harvester#5327