-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat(build-debian): Use docker to manually run build and prepare steps and add tests #28
Commits on Nov 12, 2024
-
ci(go): generate: Use go mod edit to install properly versioned tools
Parse the tools using jq so that we can easily get the tool path and version and install the one explicitly requested
Configuration menu - View commit details
-
Copy full SHA for 2852f91 - Browse repository at this point
Copy the full SHA 2852f91View commit details -
Revert "ci(go): generate: Use go mod edit to install properly version…
…ed tools" This reverts commit f4c4e2b.
Configuration menu - View commit details
-
Copy full SHA for 72d2374 - Browse repository at this point
Copy the full SHA 72d2374View commit details -
Fix warnings related to: - Version number - File too long - No contributor name - Extra whitespace around name
Configuration menu - View commit details
-
Copy full SHA for b6025d3 - Browse repository at this point
Copy the full SHA b6025d3View commit details -
workflows: Add workflow to test build-deb action
We don't fully support source builts for non-native packages yet though, so ignore the error for now
Configuration menu - View commit details
-
Copy full SHA for 8cf7a2d - Browse repository at this point
Copy the full SHA 8cf7a2dView commit details -
build-debian: Clarify what artifacts are for
Artifacts could be exposed by various other composed jobs so make this clearer for binary packages too
Configuration menu - View commit details
-
Copy full SHA for be6482d - Browse repository at this point
Copy the full SHA be6482dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 615b454 - Browse repository at this point
Copy the full SHA 615b454View commit details -
build-debian: Use manual docker build for source package
This allows us to have more control on the volumes we mount in docker and on the location of the source path. And permits us to properly mount the parent folder of the source that we need to access to read the .orig files for non-native packages. It comes as a little extra cost, but also it give us way more control on the builder instance.
Configuration menu - View commit details
-
Copy full SHA for 79874f4 - Browse repository at this point
Copy the full SHA 79874f4View commit details -
build-debian: Expose the extra source build-deps as parameter
In general when building sources we should not need anything else a part what is in build-depends, but for some packages we may need some extra packages such as ca-certificates or git. So, expose these values as extra-source-build-deps input. This option should actually be unset by default, but we don't yet not to break existing packages, but we should change it ASAP so that it depends on each repo needs.
Configuration menu - View commit details
-
Copy full SHA for dc4a92e - Browse repository at this point
Copy the full SHA dc4a92eView commit details -
build-debian: Upload source package as artifact
It may be useful for debugging purposes, so upload it once it's ready
Configuration menu - View commit details
-
Copy full SHA for c00a6bd - Browse repository at this point
Copy the full SHA c00a6bdView commit details -
build-debian: Use manual docker run to build the debian packages
For some reason using jtdor/build-deb-action@v1 does not work well with some rust builds we have, so re-implement it using some manual labor. It's not really much work and it will allow us more control. Other than, working authd builds.
Configuration menu - View commit details
-
Copy full SHA for 8783687 - Browse repository at this point
Copy the full SHA 8783687View commit details -
build-debian: Build the package as user
When building debian packages we should not have high privileges, so let's just use an unprivileged user to perform the binary build. It's not too needed for source builds, since those are not really doing tests or anything where having root privileges may lead to different behavior
Configuration menu - View commit details
-
Copy full SHA for 7cf3c3c - Browse repository at this point
Copy the full SHA 7cf3c3cView commit details -
build-debian: Fully disable internet access during packages build
Ensure that internet access is completely disabled for builder user when creating the binary package. This is something that we somewhat had implicitly for HTTPS only since ca-certificates were not installed. But let's ensure this in any case.
Configuration menu - View commit details
-
Copy full SHA for e55e0e5 - Browse repository at this point
Copy the full SHA e55e0e5View commit details -
build-debian: Add DEB_BUILD_OPTIONS input
It allows to perform special builds (such as nocheck ones), so expose it in case, for example, one may want to build without running tests.
Configuration menu - View commit details
-
Copy full SHA for 63e270e - Browse repository at this point
Copy the full SHA 63e270eView commit details -
build-debian: Use docker container also to prepare the source package
In this way we can use the proper distro version number
Configuration menu - View commit details
-
Copy full SHA for a28fcbf - Browse repository at this point
Copy the full SHA a28fcbfView commit details -
build-debian: Use more featured version number if in a git repo
In case a git repository is setup, then use version number that includes the revision list and use actual author name
Configuration menu - View commit details
-
Copy full SHA for bd363d7 - Browse repository at this point
Copy the full SHA bd363d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for f19243d - Browse repository at this point
Copy the full SHA f19243dView commit details -
build-debian: Show binaries contents and info after building
It can provide some quick information about what's in the packages
Configuration menu - View commit details
-
Copy full SHA for 39b462f - Browse repository at this point
Copy the full SHA 39b462fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c964f1 - Browse repository at this point
Copy the full SHA 2c964f1View commit details -
build-debian: Ensure we show group message as first thing
So that github groups things better
Configuration menu - View commit details
-
Copy full SHA for f3c75c6 - Browse repository at this point
Copy the full SHA f3c75c6View commit details -
Revert "build-debian: Add DEB_BUILD_OPTIONS input"
This reverts commit 3f55310.
Configuration menu - View commit details
-
Copy full SHA for f17b5d9 - Browse repository at this point
Copy the full SHA f17b5d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3336955 - Browse repository at this point
Copy the full SHA 3336955View commit details -
debian-build: Use version number so that it can override last release
Use a +git syntax and there we use incremental version values. Finally add the distro version as a minor factor, so that builds on the same code for different distros only rely on that
Configuration menu - View commit details
-
Copy full SHA for 005736a - Browse repository at this point
Copy the full SHA 005736aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 542f160 - Browse repository at this point
Copy the full SHA 542f160View commit details