fix: fixed agent docker installation
Gitea/docker-base-images/jdk14-alpine/pipeline/head There was a failure building this commit
Details
Gitea/docker-base-images/jdk14-alpine/pipeline/head There was a failure building this commit
Details
parent
682623d148
commit
174ab18528
|
@ -11,7 +11,7 @@ pipeline {
|
||||||
docker {
|
docker {
|
||||||
image 'alpine:3.17.3'
|
image 'alpine:3.17.3'
|
||||||
// Mount docker socket for docker-in-docker
|
// Mount docker socket for docker-in-docker
|
||||||
args '-v /var/run/docker.sock:/var/run/docker.sock'
|
args '-v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/bin/docker'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
|
@ -19,8 +19,7 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
sh """
|
sh """
|
||||||
apk update && \
|
apk update && \
|
||||||
apk del docker && \
|
apk add --no-cache git
|
||||||
apk add --no-cache git docker-cli
|
|
||||||
"""
|
"""
|
||||||
script {
|
script {
|
||||||
env.IMAGE_BASE_NAME = "jdk14-alpine"
|
env.IMAGE_BASE_NAME = "jdk14-alpine"
|
||||||
|
|
Loading…
Reference in New Issue