-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
image: ubuntu:24.04 | ||
package_dir: /package | ||
|
||
env: | ||
- PACKAGE_VERSION={{ .Values.version }} | ||
- GITHUB_ORG={{ ( index .Values.labels "github.owner" ) }} | ||
- GITHUB_REPO={{ ( index .Values.labels "github.repo" ) }} | ||
|
||
prelude: | ||
- apt-get update && apt-get install -y git libclang-dev libssl-dev libtss2-dev libzmq3-dev pkg-config cargo make | ||
- PACKAGE_VERSION=v${PACKAGE_VERSION%\+*} && git clone --depth=1 --branch ${PACKAGE_VERSION} https://github.com/${GITHUB_ORG}/${GITHUB_REPO} | ||
|
||
steps: | ||
# build | ||
- cd ${GITHUB_REPO} && RELEASE=1 TARGETDIR=/build make all | ||
# create target dirs for package | ||
- mkdir -p /package/usr/local/bin/ | ||
- mkdir -p /package/etc/keylime/ | ||
- mkdir -p /package/etc/systemd/system/ | ||
- mkdir -p /package/usr/libexec/keylime/ | ||
# Copy binaries | ||
- cp /build/release/keylime_agent /package/usr/local/bin/ | ||
- cp /build/release/keylime_ima_emulator /package/usr/local/bin/ | ||
# copy default config | ||
- cp ${GITHUB_REPO}/keylime-agent.conf /package/etc/keylime/ | ||
# copy systemd services | ||
- cp ${GITHUB_REPO}/dist/systemd/system/keylime_agent.service /package/etc/systemd/system/ | ||
- cp ${GITHUB_REPO}/dist/systemd/system/var-lib-keylime-secure.mount /package/etc/systemd/system/ | ||
# Some kind of needed shim for a bug | ||
# Remove when https://github.com/keylime/rust-keylime/issues/325 is fixed | ||
- cp ${GITHUB_REPO}/keylime-agent/tests/actions/shim.py /package/usr/libexec/keylime/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name: "keylime-agent" | ||
category: "utils" | ||
version: "0.2.6" | ||
labels: | ||
github.repo: "rust-keylime" | ||
github.owner: "keylime" |