File tree Expand file tree Collapse file tree 2 files changed +53
-0
lines changed
Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments