forked from aquasecurity/tracee
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflow: create a daily OS packaging test
- Loading branch information
1 parent
ddf00a9
commit f64b58c
Showing
3 changed files
with
51 additions
and
6 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
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,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 |
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