Skip to content

Commit a58520f

Browse files
committed
build-scx-scheds: Add a container image with system deps
Signed-off-by: Ihor Solodrai <[email protected]>
1 parent 985c6a4 commit a58520f

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build scx-builder
2+
description: |
3+
This workflow builds a ./build-scx-scheds/Dockerfile docker image,
4+
which can be used for sched-ext build.
5+
It is pushed to 'ghcr.io/libbpf/scx-builder'
6+
7+
on:
8+
pull_request:
9+
paths:
10+
- 'ci/build-scx-scheds/**'
11+
push:
12+
paths:
13+
- 'ci/build-scx-scheds/**'
14+
schedule:
15+
- cron: '0 0 * * 0'
16+
17+
env:
18+
REGISTRY: ghcr.io
19+
IMAGE_NAME: ${{ github.repository_owner }}/scx-builder
20+
21+
jobs:
22+
build-and-push:
23+
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
26+
packages: write
27+
28+
steps:
29+
- uses: actions/checkout@v6
30+
31+
- name: Log in to Container Registry
32+
uses: docker/login-action@v3
33+
with:
34+
registry: ${{ env.REGISTRY }}
35+
username: ${{ github.actor }}
36+
password: ${{ secrets.GITHUB_TOKEN }}
37+
38+
- name: Build and push Docker image
39+
uses: docker/build-push-action@v6
40+
with:
41+
context: ci/build-scx-scheds
42+
push: true
43+
tags: |
44+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
45+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
46+

build-scx-scheds/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM ubuntu:24.04
2+
3+
RUN apt-get update -y && apt-get install -y --no-install-recommends sudo
4+
5+
COPY install-dependencies.sh /tmp/install-dependencies.sh
6+
RUN /tmp/install-dependencies.sh
7+

0 commit comments

Comments
 (0)