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

chainguard Integration #4018

Merged
merged 72 commits into from
Nov 30, 2023
Merged

chainguard Integration #4018

merged 72 commits into from
Nov 30, 2023

Conversation

sgalsaleh
Copy link
Member

@sgalsaleh sgalsaleh commented Aug 25, 2023

What this PR does / why we need it:

Uses Chainguard to build the kotsadm image for the PR, on merge, and release workflows.

Which issue(s) this PR fixes:

Fixes:

Special notes for your reviewer:

Steps to reproduce

Does this PR introduce a user-facing change?

NONE

Does this PR require documentation?

NONE

@sgalsaleh sgalsaleh force-pushed the integration-chainguard branch from 3ef721a to 64cf502 Compare August 25, 2023 22:32
@sgalsaleh sgalsaleh changed the title Integration chainguard chainguard Integration Aug 28, 2023
@sgalsaleh sgalsaleh force-pushed the integration-chainguard branch from 1450bca to 73a2cc0 Compare November 21, 2023 15:37
@sgalsaleh sgalsaleh marked this pull request as ready for review November 21, 2023 22:07
@sgalsaleh sgalsaleh requested a review from cbodonnell November 21, 2023 22:08
@sgalsaleh sgalsaleh force-pushed the integration-chainguard branch from 01bd440 to ce9b1a2 Compare November 22, 2023 14:22

# Symlink the gcsfuse mount to ./packages/$arch/*.apk
mkdir -p ./packages/x86_64
ln -s /tmp/gcsfuse/apk-repo/x86_64/*.apk ./packages/x86_64/
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
ln -s /tmp/gcsfuse/apk-repo/x86_64/*.apk ./packages/x86_64/
ln -s /tmp/gcsfuse/apk-repo/x86_64/*.apk ./packages/x86_64/
ln -s /tmp/gcsfuse/apk-repo/chainguard-enterprise.rsa.pub ./packages/

Also need to symlink the key into ./packages/. We should be able to see this in the ls -lR below if this is successful.

Copy link
Member Author

Choose a reason for hiding this comment

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

Getting this error now (i only added the key to the melange config, not apko):

Error: failed to build package: unable to build guest: unable to create build context: initializing apk: failed to initialize apk keyring: failed to read apk key: open ./packages/chainguard-enterprise.rsa.pub: permission denied
2023/11/29 16:02:15 error during command execution: failed to build package: unable to build guest: unable to create build context: initializing apk: failed to initialize apk keyring: failed to read apk key: open ./packages/chainguard-enterprise.rsa.pub: permission denied
Error: Process completed with exit code 1.


- name: Download kotsadm artifact
uses: actions/download-artifact@v3
- uses: actions/checkout@v3
Copy link
Contributor

Choose a reason for hiding this comment

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

i think we just changed this to v4. any reason to change it back?

uses: actions/checkout@v4
- name: Download go_api artifact
uses: actions/download-artifact@v3
uses: actions/checkout@v3
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

@sgalsaleh sgalsaleh merged commit f1bbbad into main Nov 30, 2023
162 checks passed
@sgalsaleh sgalsaleh deleted the integration-chainguard branch November 30, 2023 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants