Skip to content

Commit

Permalink
workflow: create a daily OS packaging test
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeldtinoco committed May 11, 2022
1 parent ddf00a9 commit f64b58c
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/actions/build-dependencies/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ runs:
- name: Install Compilers
run: |
sudo apt-get update
sudo apt-get install --yes build-essential pkgconf libelf-dev llvm-12 clang-12
sudo apt-get install --yes build-essential
sudo apt-get install --yes llvm-12 clang-12
sudo apt-get install --yes pkgconf libelf-dev
sudo apt-get install --yes bsdutils
for tool in "clang" "llc" "llvm-strip"
do
sudo rm -f /usr/bin/$tool
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/test-os-packaging-daily.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#
# Daily Test: Test generating OS packages
#
name: OS Packages (DAILY)
on:
workflow_dispatch: {}
schedule:
# Daily At 04:00
- cron: '0 4 * * 0'
jobs:
packaging:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
flavor: [
{distro: ubuntu, version: bionic},
{distro: ubuntu, version: focal},
{distro: ubuntu, version: impish},
{distro: ubuntu, version: jammy},
{distro: fedora, version: 34},
{distro: fedora, version: 35},
{distro: fedora, version: 36}
]
steps:
- name: Checkout Code
uses: actions/checkout@v2
with:
submodules: true
- name: Fetch Tags
run: |
git fetch --prune --unshallow --tags
- name: Install Dependencies
uses: ./.github/actions/build-dependencies
- name: "Build Package"
run: |
export GIT_TAG=${{steps.tagger.outputs.tag}}
script --return -c "make -f builder/Makefile.packaging ${{ matrix.flavor.distro }}-bin-${{ matrix.flavor.version }}"
find ./dist | grep -Eq "(deb|rpm)" && found=1
if [[ $found -ne 1 ]]; then
echo "Could not generate OS package, check errors"
exit 1
fi
9 changes: 4 additions & 5 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
[![docker](https://badgen.net/docker/pulls/aquasec/tracee)](https://hub.docker.com/r/aquasec/tracee)
[![Test Signatures](https://github.com/aquasecurity/tracee/actions/workflows/test-signatures.yaml/badge.svg)](https://github.com/aquasecurity/tracee/actions/workflows/test-signatures.yaml)
[![Release Snapshot](https://github.com/aquasecurity/tracee/actions/workflows/release-snapshot.yaml/badge.svg)](https://github.com/aquasecurity/tracee/actions/workflows/release-snapshot.yaml)
[![OS Packages (Daily)](https://github.com/aquasecurity/tracee/actions/workflows/.github/workflows/test-os-packaging-daily.yaml/badge.svg)](https://github.com/aquasecurity/tracee/actions/workflows/.github/workflows/test-os-packaging-daily.yaml)
[![CO-RE (Daily)](https://github.com/aquasecurity/tracee/actions/workflows/test-core-daily.yaml/badge.svg)](https://github.com/aquasecurity/tracee/actions/workflows/test-core-daily.yaml)
[![NON CO-RE (Daily)](https://github.com/aquasecurity/tracee/actions/workflows/test-noncore-daily.yaml/badge.svg)](https://github.com/aquasecurity/tracee/actions/workflows/test-noncore-daily.yaml)
[![CO-RE (Weekly)](https://github.com/aquasecurity/tracee/actions/workflows/test-core-weekly.yaml/badge.svg)](https://github.com/aquasecurity/tracee/actions/workflows/test-core-weekly.yaml)
[![NON CO-RE (Weekly)](https://github.com/aquasecurity/tracee/actions/workflows/test-noncore-weekly.yaml/badge.svg)](https://github.com/aquasecurity/tracee/actions/workflows/test-noncore-weekly.yaml)
[![CO-RE (DAILY)](https://github.com/aquasecurity/tracee/actions/workflows/test-core-daily.yaml/badge.svg)](https://github.com/aquasecurity/tracee/actions/workflows/test-core-daily.yaml)
[![NON CO-RE (DAILY)](https://github.com/aquasecurity/tracee/actions/workflows/test-noncore-daily.yaml/badge.svg)](https://github.com/aquasecurity/tracee/actions/workflows/test-noncore-daily.yaml)
[![CO-RE (WEEKLY)](https://github.com/aquasecurity/tracee/actions/workflows/test-core-weekly.yaml/badge.svg)](https://github.com/aquasecurity/tracee/actions/workflows/test-core-weekly.yaml)
[![NON CO-RE (WEEKLY)](https://github.com/aquasecurity/tracee/actions/workflows/test-noncore-weekly.yaml/badge.svg)](https://github.com/aquasecurity/tracee/actions/workflows/test-noncore-weekly.yaml)

# Tracee: Runtime Security and Forensics using eBPF

Expand Down

0 comments on commit f64b58c

Please sign in to comment.