Skip to content

Commit 8dad90b

Browse files
authored
Merge pull request #217 from adrianreber/2026-04-20-ci-container
ci: use pre-built CI container in coverage and test workflows
2 parents eea83bf + a86f696 commit 8dad90b

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@ on: [push, pull_request]
44

55
permissions:
66
contents: read
7+
packages: read
78

89
jobs:
910
coverage:
1011
runs-on: ubuntu-latest
1112
container:
12-
image: fedora:latest
13+
image: ghcr.io/${{ github.repository }}/ci:latest
14+
credentials:
15+
username: ${{ github.actor }}
16+
password: ${{ secrets.GITHUB_TOKEN }}
1317
options: --privileged
1418
steps:
15-
- name: Install tools
16-
run: |
17-
dnf install -y bats iptables iproute jq criu golang make git
1819
- name: Fix git safe directory
1920
run: git config --global --add safe.directory /__w/checkpointctl/checkpointctl
2021
- name: checkout

.github/workflows/tests.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,23 @@ on: [push, pull_request]
44

55
permissions:
66
contents: read
7+
packages: read
78

89
jobs:
910
test:
1011
runs-on: ubuntu-latest
1112
container:
12-
image: fedora:latest
13+
image: ghcr.io/${{ github.repository }}/ci:latest
14+
credentials:
15+
username: ${{ github.repository_owner }}
16+
password: ${{ secrets.GITHUB_TOKEN }}
1317
options: --privileged -v /lib/modules:/lib/modules
1418
steps:
19+
- name: Fix git safe directory
20+
run: git config --global --add safe.directory /__w/checkpointctl/checkpointctl
1521
- uses: actions/checkout@v4
16-
- name: Install tools
22+
- name: Load kernel modules
1723
run: |
18-
dnf install -y golang make ShellCheck bats criu rubygem-asciidoctor iptables iproute kmod jq bash bash-completion zsh fish
1924
modprobe -va ip_tables ip6table_filter nf_conntrack nf_conntrack_netlink
2025
- name: Run make shellcheck
2126
run: make shellcheck

0 commit comments

Comments
 (0)