File tree Expand file tree Collapse file tree 2 files changed +50
-0
lines changed
Expand file tree Collapse file tree 2 files changed +50
-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+ - ' 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 }}
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