-
Notifications
You must be signed in to change notification settings - Fork 14
43 lines (39 loc) · 1.1 KB
/
sysbox-ce-pkg-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#
# GitHub Actions nightly build and test of the sysbox CE package.
#
name: sysbox-ce-pkg-ci
# Runs daily at 5am PST (1pm UTC)
on:
schedule:
- cron: "0 13 * * *"
defaults:
run:
shell: bash
jobs:
sysbox_ce_pkg_test:
runs-on: [self-hosted, Linux, X64, '${{ matrix.distro }}']
strategy:
fail-fast: false
max-parallel: 2
matrix:
distro: [ubuntu-bionic, ubuntu-focal, debian-buster, debian-bullseye]
steps:
- name: precheckout-cleanup
run: |
sudo rm -rf *
- name: checkout
uses: actions/checkout@v2
- name: prebuild-cleanup
run: |
docker stop -t0 $(docker ps -aq) || true
docker image rm $(docker image ls -aq) || true
- name: test-sysbox-ce-pkg
run: |
docker stop -t0 $(docker ps -aq) || true
make test-sysbox-ce-deb ${{ matrix.distro }}
- name: post-cleanup
working-directory: sources/sysbox
run: |
docker stop -t0 $(docker ps -aq) || true
sudo make test-cleanup
docker image rm $(docker image ls -aq) || true