-
Notifications
You must be signed in to change notification settings - Fork 0
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
Linux package proof of concept #1
base: main
Are you sure you want to change the base?
Conversation
* wip: ci * set workflow permissions * fix concurrency * fix flags * include npm license and fix tests * run install test * purge package
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out source code | ||
uses: actions/checkout@v4 |
Check warning
Code scanning / Scorecard
Pinned-Dependencies Medium
Click Remediation section below to solve this issue
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5.0.0 |
Check warning
Code scanning / Scorecard
Pinned-Dependencies Medium
Click Remediation section below to solve this issue
with: | ||
go-version: "1.21.5" | ||
|
||
- uses: actions/setup-node@v4 |
Check warning
Code scanning / Scorecard
Pinned-Dependencies Medium
Click Remediation section below to solve this issue
|
||
- name: Install Cinc (Inspec) | ||
run: | | ||
curl -L https://omnitruck.cinc.sh/install.sh | \ |
Check warning
Code scanning / Scorecard
Pinned-Dependencies Medium
Click Remediation section below to solve this issue
node-version: "20" | ||
|
||
- name: Test GoReleaser | ||
uses: goreleaser/goreleaser-action@v5 |
Check warning
Code scanning / Scorecard
Pinned-Dependencies Medium
Click Remediation section below to solve this issue
Uses Goreleaser to build deb and rpm packages. Includes some specific configuration for special needs that I have, but can be used as a reference for anyone who wants to build Linux packages.
You can give it a try with:
Long term I would probably use Goreleaser to assemble the package using binaries built from the upstream Prometheus release, instead of building them here. Or wait until the Prometheus team implements linux packages.