From 42cfa055e561c16542b64b7c3e302dd1c3531195 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Wed, 13 Aug 2025 18:38:03 +0300 Subject: [PATCH 1/5] feat: support arm64 docker images --- docker-bake.hcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-bake.hcl b/docker-bake.hcl index 2d064b1..60de505 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -40,7 +40,7 @@ target "all" { "${DOCKER_REPO}:all", "${GITHUB_REPO}:all" ] - platforms = ["linux/amd64"] + platforms = ["linux/amd64", "linux/arm64"] } target "clang-tools" { From 678f14d864128938d22e74a06cc6c066c693de0c Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Wed, 13 Aug 2025 18:40:01 +0300 Subject: [PATCH 2/5] feat: support more alpine images --- docker-bake.hcl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-bake.hcl b/docker-bake.hcl index 60de505..bc35b50 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -3,9 +3,13 @@ group "default" { targets = [ "all", "20", + "20-alpine", "19", + "19-alpine", "18", + "18-alpine", "17", + "17-alpine", "16", "16-alpine", "15", From 9a5530d910a65209bd3529732b8026c86272db79 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Wed, 13 Aug 2025 18:43:58 +0300 Subject: [PATCH 3/5] fix: add arm64 and alpine images --- docker-bake.hcl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docker-bake.hcl b/docker-bake.hcl index bc35b50..f3578c0 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -44,7 +44,7 @@ target "all" { "${DOCKER_REPO}:all", "${GITHUB_REPO}:all" ] - platforms = ["linux/amd64", "linux/arm64"] + platforms = ["linux/amd64"] } target "clang-tools" { @@ -63,7 +63,7 @@ target "clang-tools" { "${DOCKER_REPO}:${tgt}", "${GITHUB_REPO}:${tgt}" ] - platforms = ["linux/amd64"] + platforms = ["linux/amd64", "linux/arm64"] } target "clang-tools" { @@ -82,7 +82,7 @@ target "clang-tools" { "${DOCKER_REPO}:${tgt}", "${GITHUB_REPO}:${tgt}" ] - platforms = ["linux/amd64"] + platforms = ["linux/amd64", "linux/arm64"] } target "clang-tools" { @@ -101,7 +101,7 @@ target "clang-tools" { "${DOCKER_REPO}:${tgt}", "${GITHUB_REPO}:${tgt}" ] - platforms = ["linux/amd64"] + platforms = ["linux/amd64", "linux/arm64"] } target "clang-tools" { @@ -119,7 +119,7 @@ target "clang-tools" { "${DOCKER_REPO}:${tgt}", "${GITHUB_REPO}:${tgt}" ] - platforms = ["linux/amd64"] + platforms = ["linux/amd64", "linux/arm64"] } target "clang-tools" { @@ -137,7 +137,7 @@ target "clang-tools" { "${DOCKER_REPO}:${tgt}", "${GITHUB_REPO}:${tgt}" ] - platforms = ["linux/amd64"] + platforms = ["linux/amd64", "linux/arm64"] } target "clang-tools" { @@ -155,12 +155,12 @@ target "clang-tools" { "${DOCKER_REPO}:${tgt}", "${GITHUB_REPO}:${tgt}" ] - platforms = ["linux/amd64"] + platforms = ["linux/amd64", "linux/arm64"] } target "clang-tools" { matrix = { - tgt = ["16-alpine"] + tgt = ["16-alpine", "17-alpine", "18-alpine", "19-alpine", "20-alpine"] } name = "${tgt}" dockerfile = "Dockerfile.alpine" @@ -173,5 +173,5 @@ target "clang-tools" { "${DOCKER_REPO}:${tgt}", "${GITHUB_REPO}:${tgt}" ] - platforms = ["linux/amd64"] + platforms = ["linux/amd64", "linux/arm64"] } From 75e3d9061998907f8faa409ad6f2b912d89deade Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Wed, 13 Aug 2025 18:45:44 +0300 Subject: [PATCH 4/5] feat: add alpine images to ci --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index e6f742d..64ea16a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -23,7 +23,7 @@ jobs: build: strategy: matrix: - target: [ "all", "20", "19", "18", "17", "16", "16-alpine", "15", "14", "13", "12", "11", "10", "9", "8", "7"] + 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"] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From e626eb91710056e6d98140f2b95622fab37241a1 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Wed, 13 Aug 2025 18:48:14 +0300 Subject: [PATCH 5/5] docs: update readme --- README.md | 4 ++++ docker-bake.hcl | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4e5f35a..1aefee2 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,13 @@ You can access all available Clang Tools Docker images via [Docker Hub registry * [`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`) * [`20`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile) +* [`20-alpine`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile.alpine) * [`19`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile) +* [`19-alpine`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile.alpine) * [`18`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile) +* [`18-alpine`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile.alpine) * [`17`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile) +* [`17-alpine`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile.alpine) * [`16`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile) * [`16-alpine`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile.alpine) * [`15`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile) diff --git a/docker-bake.hcl b/docker-bake.hcl index f3578c0..2b15305 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -44,7 +44,7 @@ target "all" { "${DOCKER_REPO}:all", "${GITHUB_REPO}:all" ] - platforms = ["linux/amd64"] + platforms = ["linux/amd64", "linux/arm64"] } target "clang-tools" {