Skip to content

Commit 6174ef6

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

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
- 'build-scx-scheds/**'
11+
schedule:
12+
- cron: '0 0 * * 0'
13+
workflow_dispatch:
14+
15+
env:
16+
REGISTRY: ghcr.io
17+
IMAGE_NAME: ${{ github.repository_owner }}/scx-builder
18+
19+
jobs:
20+
build-and-push:
21+
runs-on: ubuntu-latest
22+
permissions:
23+
contents: read
24+
packages: write
25+
26+
steps:
27+
- uses: actions/checkout@v6
28+
29+
- name: Log in to Container Registry
30+
uses: docker/login-action@v3
31+
with:
32+
registry: ${{ env.REGISTRY }}
33+
username: ${{ github.actor }}
34+
password: ${{ secrets.GITHUB_TOKEN }}
35+
36+
- name: Build and push Docker image
37+
uses: docker/build-push-action@v6
38+
with:
39+
context: build-scx-scheds
40+
push: true
41+
tags: |
42+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
43+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}

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)