-
Notifications
You must be signed in to change notification settings - Fork 856
43 lines (38 loc) · 1.1 KB
/
ci.yml
File metadata and controls
43 lines (38 loc) · 1.1 KB
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
name: docker-install CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
matrix:
os:
- ubuntu:22.04
- ubuntu:24.04
- quay.io/centos/centos:stream9
version:
- "27.5"
- ""
steps:
- uses: actions/checkout@v3
- name: Shellcheck
env:
GH_TOKEN: ${{ github.token }}
run: make shellcheck
- name: Check distribution
env:
GH_TOKEN: ${{ github.token }}
run: TEST_IMAGE=${{ matrix.os }} VERSION=${{ matrix.version }} make test
# This is a separate workflow step, because we need to check it outside of container (due to lsmod, iptables checks)
test-install-rootless:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- name: Install rootless
env:
GH_TOKEN: ${{ github.token }}
run: |
sudo sh -c 'echo 0 > /proc/sys/kernel/apparmor_restrict_unprivileged_userns'
make build/test/rootless-install.sh
FORCE_ROOTLESS_INSTALL=1 ./build/test/rootless-install.sh