fix(ci): 挂载 Docker socket 并安装 Docker CLI
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user