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
e559426d2e
commit
21bcb7868f
|
@ -9,7 +9,7 @@ def resolveImageName(env) {
|
|||
pipeline {
|
||||
agent {
|
||||
docker {
|
||||
image 'alpine:3.17.3'
|
||||
image 'alpinelinux/docker-cli'
|
||||
// Mount docker socket for docker-in-docker
|
||||
args '-v /var/run/docker.sock:/var/run/docker.sock'
|
||||
}
|
||||
|
@ -19,8 +19,7 @@ pipeline {
|
|||
steps {
|
||||
sh """
|
||||
apk update && \
|
||||
apk add --no-cache git && \
|
||||
apk add docker-cli
|
||||
apk add --no-cache git
|
||||
"""
|
||||
script {
|
||||
env.IMAGE_BASE_NAME = "jdk14-alpine"
|
||||
|
|
Loading…
Reference in New Issue