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: Make release SLSA compliant #749

Merged
merged 4 commits into from
Dec 16, 2024
Merged

Conversation

yiannistri
Copy link
Contributor

@yiannistri yiannistri commented Dec 11, 2024

What this PR does / why we need it:

This PR changes the build process to be self-contained: it no longer requires the application to be build outside the container and relying on go version in the CI runner, instead the build is done in a build layer.

It also updates the release workflow to additionally push images to Prime Registry.

Finally it uses cross-compilation helpers to invoke the Go compiler with the correct env vars for the target platform.

Which issue(s) this PR fixes
Issue #748

Special notes for your reviewer:

Checklist:

  • squashed commits into logical changes
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests
  • backport needed

@yiannistri yiannistri changed the title ci: Make build self-contained ci: Make release SLSA compliant Dec 12, 2024
@yiannistri yiannistri marked this pull request as ready for review December 12, 2024 12:06
@yiannistri yiannistri requested a review from a team as a code owner December 12, 2024 12:06
@yiannistri yiannistri requested a review from pjbgf December 12, 2024 12:06
pjbgf
pjbgf previously approved these changes Dec 12, 2024
Copy link
Member

@pjbgf pjbgf left a comment

Choose a reason for hiding this comment

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

LGTM

package/Dockerfile Outdated Show resolved Hide resolved
@yiannistri yiannistri merged commit 355339c into rancher:main Dec 16, 2024
6 checks passed
@yiannistri yiannistri deleted the 748-build branch December 16, 2024 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants