Skip to content

Commit e250189

Browse files
authored
feat: support arm64 and alpine docker images (#100)
* feat: support arm64 docker images * feat: support more alpine images * fix: add arm64 and alpine images * feat: add alpine images to ci * docs: update readme
1 parent 81b4f3f commit e250189

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
build:
2424
strategy:
2525
matrix:
26-
target: [ "all", "20", "19", "18", "17", "16", "16-alpine", "15", "14", "13", "12", "11", "10", "9", "8", "7"]
26+
target: [ "all", "20", "20-alpine", "19", "19-alpine", "18", "18-alpine", "17", "17-alpine", "16", "16-alpine", "15", "14", "13", "12", "11", "10", "9", "8", "7"]
2727
runs-on: ubuntu-latest
2828
steps:
2929
- uses: actions/checkout@v4

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ You can access all available Clang Tools Docker images via [Docker Hub registry
1414

1515
* [`all`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile.all) (Supports versions of clang-tools includes `20`, `19`, `18`, `17`, `16`, `15`, `14`, `13`, `12`, `11`, `10`, `9`)
1616
* [`20`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile)
17+
* [`20-alpine`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile.alpine)
1718
* [`19`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile)
19+
* [`19-alpine`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile.alpine)
1820
* [`18`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile)
21+
* [`18-alpine`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile.alpine)
1922
* [`17`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile)
23+
* [`17-alpine`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile.alpine)
2024
* [`16`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile)
2125
* [`16-alpine`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile.alpine)
2226
* [`15`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile)

docker-bake.hcl

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ group "default" {
33
targets = [
44
"all",
55
"20",
6+
"20-alpine",
67
"19",
8+
"19-alpine",
79
"18",
10+
"18-alpine",
811
"17",
12+
"17-alpine",
913
"16",
1014
"16-alpine",
1115
"15",
@@ -40,7 +44,7 @@ target "all" {
4044
"${DOCKER_REPO}:all",
4145
"${GITHUB_REPO}:all"
4246
]
43-
platforms = ["linux/amd64"]
47+
platforms = ["linux/amd64", "linux/arm64"]
4448
}
4549

4650
target "clang-tools" {
@@ -59,7 +63,7 @@ target "clang-tools" {
5963
"${DOCKER_REPO}:${tgt}",
6064
"${GITHUB_REPO}:${tgt}"
6165
]
62-
platforms = ["linux/amd64"]
66+
platforms = ["linux/amd64", "linux/arm64"]
6367
}
6468

6569
target "clang-tools" {
@@ -78,7 +82,7 @@ target "clang-tools" {
7882
"${DOCKER_REPO}:${tgt}",
7983
"${GITHUB_REPO}:${tgt}"
8084
]
81-
platforms = ["linux/amd64"]
85+
platforms = ["linux/amd64", "linux/arm64"]
8286
}
8387

8488
target "clang-tools" {
@@ -97,7 +101,7 @@ target "clang-tools" {
97101
"${DOCKER_REPO}:${tgt}",
98102
"${GITHUB_REPO}:${tgt}"
99103
]
100-
platforms = ["linux/amd64"]
104+
platforms = ["linux/amd64", "linux/arm64"]
101105
}
102106

103107
target "clang-tools" {
@@ -115,7 +119,7 @@ target "clang-tools" {
115119
"${DOCKER_REPO}:${tgt}",
116120
"${GITHUB_REPO}:${tgt}"
117121
]
118-
platforms = ["linux/amd64"]
122+
platforms = ["linux/amd64", "linux/arm64"]
119123
}
120124

121125
target "clang-tools" {
@@ -133,7 +137,7 @@ target "clang-tools" {
133137
"${DOCKER_REPO}:${tgt}",
134138
"${GITHUB_REPO}:${tgt}"
135139
]
136-
platforms = ["linux/amd64"]
140+
platforms = ["linux/amd64", "linux/arm64"]
137141
}
138142

139143
target "clang-tools" {
@@ -151,12 +155,12 @@ target "clang-tools" {
151155
"${DOCKER_REPO}:${tgt}",
152156
"${GITHUB_REPO}:${tgt}"
153157
]
154-
platforms = ["linux/amd64"]
158+
platforms = ["linux/amd64", "linux/arm64"]
155159
}
156160

157161
target "clang-tools" {
158162
matrix = {
159-
tgt = ["16-alpine"]
163+
tgt = ["16-alpine", "17-alpine", "18-alpine", "19-alpine", "20-alpine"]
160164
}
161165
name = "${tgt}"
162166
dockerfile = "Dockerfile.alpine"
@@ -169,5 +173,5 @@ target "clang-tools" {
169173
"${DOCKER_REPO}:${tgt}",
170174
"${GITHUB_REPO}:${tgt}"
171175
]
172-
platforms = ["linux/amd64"]
176+
platforms = ["linux/amd64", "linux/arm64"]
173177
}

0 commit comments

Comments
 (0)