Skip to content

Commit 09a8a43

Browse files
committed
Use alpine on CI
1 parent e35ce9b commit 09a8a43

File tree

7 files changed

+27
-17
lines changed

7 files changed

+27
-17
lines changed

.devcontainer/ubuntu/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
}
1414
},
1515
"image": "ghcr.io/learning-process/ppc-ubuntu:1.1",
16-
"name": "Parallel Programming Course",
16+
"name": "Parallel Programming Course (Ubuntu)",
1717
"postCreateCommand": "python3 -m pip install -r requirements.txt"
1818
}

.github/workflows/docker.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,20 @@ jobs:
4343
username: ${{ github.actor }}
4444
password: ${{ secrets.DOCKER_TOKEN }}
4545

46-
- name: Build and push multi-arch image
46+
- name: Build and push multi-arch image (Ubuntu)
4747
uses: docker/build-push-action@v6
4848
with:
4949
context: .
5050
file: ./docker/ubuntu.Dockerfile
5151
platforms: linux/amd64,linux/arm64
5252
push: ${{ github.ref == 'refs/heads/master' }}
53-
tags: ghcr.io/learning-process/ppc-ubuntu:1.1
53+
tags: ghcr.io/learning-process/ppc-alpine:1.0
54+
55+
- name: Build and push multi-arch image (Alpine)
56+
uses: docker/build-push-action@v6
57+
with:
58+
context: .
59+
file: ./docker/alpine.Dockerfile
60+
platforms: linux/amd64,linux/arm64
61+
push: ${{ github.ref == 'refs/heads/master' }}
62+
tags: ghcr.io/learning-process/ppc-alpine:1.0

.github/workflows/perf.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
ubuntu-gcc-build-perf-stats:
1212
runs-on: ubuntu-24.04
1313
container:
14-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
14+
image: ghcr.io/learning-process/ppc-alpine:1.0
1515
credentials:
1616
username: ${{ github.actor }}
1717
password: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
needs: check-file-sizes
2424
runs-on: ubuntu-24.04
2525
container:
26-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
26+
image: ghcr.io/learning-process/ppc-alpine:1.0
2727
credentials:
2828
username: ${{ github.actor }}
2929
password: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/static-analysis-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
clang-tidy:
2828
runs-on: ubuntu-24.04
2929
container:
30-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
30+
image: ghcr.io/learning-process/ppc-alpine:1.0
3131
credentials:
3232
username: ${{ github.actor }}
3333
password: ${{ secrets.GITHUB_TOKEN }}
@@ -76,7 +76,7 @@ jobs:
7676
- clang-tidy
7777
runs-on: ubuntu-24.04
7878
container:
79-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
79+
image: ghcr.io/learning-process/ppc-alpine:1.0
8080
credentials:
8181
username: ${{ github.actor }}
8282
password: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ubuntu.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
gcc-build:
1212
runs-on: ${{ matrix.os }}
1313
container:
14-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
14+
image: ghcr.io/learning-process/ppc-alpine:1.0
1515
credentials:
1616
username: ${{ github.actor }}
1717
password: ${{ secrets.GITHUB_TOKEN }}
@@ -65,7 +65,7 @@ jobs:
6565
- gcc-build
6666
runs-on: ${{ matrix.os }}
6767
container:
68-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
68+
image: ghcr.io/learning-process/ppc-alpine:1.0
6969
credentials:
7070
username: ${{ github.actor }}
7171
password: ${{ secrets.GITHUB_TOKEN }}
@@ -97,7 +97,7 @@ jobs:
9797
- gcc-test
9898
runs-on: ${{ matrix.os }}
9999
container:
100-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
100+
image: ghcr.io/learning-process/ppc-alpine:1.0
101101
credentials:
102102
username: ${{ github.actor }}
103103
password: ${{ secrets.GITHUB_TOKEN }}
@@ -121,7 +121,7 @@ jobs:
121121
clang-build:
122122
runs-on: ${{ matrix.os }}
123123
container:
124-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
124+
image: ghcr.io/learning-process/ppc-alpine:1.0
125125
credentials:
126126
username: ${{ github.actor }}
127127
password: ${{ secrets.GITHUB_TOKEN }}
@@ -166,7 +166,7 @@ jobs:
166166
- clang-build
167167
runs-on: ${{ matrix.os }}
168168
container:
169-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
169+
image: ghcr.io/learning-process/ppc-alpine:1.0
170170
credentials:
171171
username: ${{ github.actor }}
172172
password: ${{ secrets.GITHUB_TOKEN }}
@@ -198,7 +198,7 @@ jobs:
198198
- clang-test
199199
runs-on: ${{ matrix.os }}
200200
container:
201-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
201+
image: ghcr.io/learning-process/ppc-alpine:1.0
202202
credentials:
203203
username: ${{ github.actor }}
204204
password: ${{ secrets.GITHUB_TOKEN }}
@@ -224,7 +224,7 @@ jobs:
224224
- clang-build
225225
runs-on: ${{ matrix.os }}
226226
container:
227-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
227+
image: ghcr.io/learning-process/ppc-alpine:1.0
228228
credentials:
229229
username: ${{ github.actor }}
230230
password: ${{ secrets.GITHUB_TOKEN }}
@@ -271,7 +271,7 @@ jobs:
271271
- clang-sanitizer-build
272272
runs-on: ${{ matrix.os }}
273273
container:
274-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
274+
image: ghcr.io/learning-process/ppc-alpine:1.0
275275
credentials:
276276
username: ${{ github.actor }}
277277
password: ${{ secrets.GITHUB_TOKEN }}
@@ -309,7 +309,7 @@ jobs:
309309
- clang-sanitizer-test
310310
runs-on: ${{ matrix.os }}
311311
container:
312-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
312+
image: ghcr.io/learning-process/ppc-alpine:1.0
313313
credentials:
314314
username: ${{ github.actor }}
315315
password: ${{ secrets.GITHUB_TOKEN }}
@@ -342,7 +342,7 @@ jobs:
342342
issues: write
343343
pull-requests: write
344344
container:
345-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
345+
image: ghcr.io/learning-process/ppc-alpine:1.0
346346
credentials:
347347
username: ${{ github.actor }}
348348
password: ${{ secrets.GITHUB_TOKEN }}

docker/alpine.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ RUN set -eux; \
1212
curl \
1313
git \
1414
gnupg \
15+
linux-headers \
1516
lld \
1617
llvm \
1718
make \

0 commit comments

Comments
 (0)