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

ci: simplify the script/package to speed up local development #110

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

Yu-Jack
Copy link
Collaborator

@Yu-Jack Yu-Jack commented Apr 18, 2024

I tested following situations, all work:

  • Mac M1 execute ./scripts/build && ./scripts/package
  • Linux Laptop (amd64) execute ./scripts/build && ./scripts/package
  • Github Action
  • Local Github Action
  • Image can be used in linux/amd64 and linux/arm64 (Tested Image: jk82421/support-bundle-kit:pull-test-ci-01)

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

@Yu-Jack Yu-Jack force-pushed the ci-test branch 2 times, most recently from 6a9d138 to 9a68da7 Compare April 18, 2024 03:56
@Yu-Jack Yu-Jack changed the title test ci: simplify the script/package to speed up local development Apr 18, 2024
Signed-off-by: Jack Yu <jack.yu@suse.com>
@@ -1,6 +1,9 @@
# syntax=docker/dockerfile:1.7.0
Copy link
Collaborator Author

@Yu-Jack Yu-Jack Apr 18, 2024

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

Copy link
Contributor

@FrankYang0529 FrankYang0529 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you.

Copy link
Collaborator

@ibrokethecloud ibrokethecloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. thanks.

@Yu-Jack Yu-Jack merged commit 1a9b8ab into rancher:master Apr 23, 2024
1 check passed
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