-
Notifications
You must be signed in to change notification settings - Fork 57
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 migration to GitHub Actions, and build system improvements #55
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
npdgm
commented
Sep 18, 2022
•
edited
edited
- Migrate from Gitlab CI to Github Actions
- Add a CODEOWNERS file to protect CI
- Run CI on pull requests
- Go: code linting, unit testing
- Helm chart linting (install test to be added later)
- Dockerfile linting
- Security checks on dependencies
- New build targets for binary releases
- OS: NetBSD, illumos
- Architecture: RISC-V (Linux only), closes Build container images for RISC-V #49
- Builds know their release date and commit hash in addition to version (to be used for an upcoming "info" metric)
- Assets uploaded to the release before it's published
- Compress released binaries (tgz or zip), and add fingerprint files for SHA-256 checksum verification
- Container images
- Switch to buildah for daemon-less building, assembling multi-platform manifest, and pushing to registries
- Images now ship the same static binaries from release assets
- New flavors
- Busybox (uclibc)
- Distroless "scratch"
- Busybox images are now shipped under the default version tag, to improve compatibility with legacy environments, and alleviate security strain on some user systems
- Alpine image based on version 3.16, previously 3.14 (may cause compatibility problems, but not the default anymore)
- Helm chart
- New value to suffix image tag and choose a container image flavor
- Improve translation of Semantic Release changelog to Artifacthub specifications, and add support for the new format
Preparing for the pending migration to Github Actions.
Will be used for a future metric reporting exporter infos.
Alpine Linux has raised issues when tracking latest versions, with muscl enabling new syscalls not handled by old CRIs. This project running a static binary, we do not need or benefit from a cutting edge userland, and would rather prefer to maximize compatibility with legacy environments. The distribution also has a larger surface for security vulnerabilities with many libraries installed, forcing otherwise unnecessary builds so that users would not be affected by security scans in their clusters or registries. Busybox was chosen as an alternative to going distroless by default, as the exporter is dealing with volumes where having a shell is convenient for debugging file access. All container images will keep being built, including Alpine, and base image versions will be bumped as needed. But hopefully this switch will reduce pain for users.
RISC-V not being supported in Alpine 3.16, we'll use "edge" as the base image for the time being.
npdgm
changed the title
CI migration to Gitlab Actions, and build system improvements
CI migration to GitHub Actions, and build system improvements
Sep 19, 2022
npdgm
force-pushed
the
test-github-actions
branch
from
September 19, 2022 10:03
51031a4
to
b9b8965
Compare
npdgm
force-pushed
the
test-github-actions
branch
from
September 19, 2022 12:00
b9b8965
to
3a1e7e2
Compare
npdgm
force-pushed
the
test-github-actions
branch
from
September 19, 2022 12:02
3a1e7e2
to
306d22f
Compare
🎉 This PR is included in version 3.5.0-beta.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 3.5.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.