fix(ci): 挂载 Docker socket 并安装 Docker CLI

This commit is contained in:
2026-07-19 21:18:47 +08:00
parent 688be6b65f
commit f8e24ffdf0
+6
View File
@@ -23,12 +23,18 @@ jobs:
image: maven:3.9-eclipse-temurin-17
volumes:
- /data/maven-repo:/root/.m2
- /var/run/docker.sock:/var/run/docker.sock
steps:
- name: Checkout code
run: |
git clone $REPO_URL .
git checkout ${{ gitea.sha }}
- name: Install Docker CLI
run: |
apt-get update -qq
apt-get install -y -qq docker.io
- name: Build with Maven
run: mvn clean package -DskipTests -B