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

Run release build as regular user #70

Merged
merged 3 commits into from
Jun 28, 2022
Merged

Run release build as regular user #70

merged 3 commits into from
Jun 28, 2022

Conversation

tklauser
Copy link
Member

Follow the approach taken in cilium/hubble and cilium/cilium-cli make release targets, see cilium/hubble#751 and cilium/cilium-cli#945.

Also update Go and alpine to the most recent versions and add the release/ directory to .gitignore.

Signed-off-by: Tobias Klauser <tobias@cilium.io>
Signed-off-by: Tobias Klauser <tobias@cilium.io>
Instead of adding the checkout directory to git's safe directories as
done in commit 1d42d3f ("make: allow running git status during
release build"), change the release target to create a regular user with
the same UID/GID as the current user (assumed to be the user owning the
working directory) inside the container and use it to run `make
release`.

Follows cilium/hubble#751 and cilium/cilium-cli#945

Signed-off-by: Tobias Klauser <tobias@cilium.io>
@brb brb merged commit 4044993 into master Jun 28, 2022
@tklauser tklauser deleted the pr/tklauser/make-release branch June 28, 2022 14:21
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.

None yet

3 participants