chore: changed base image for Jenkinsfile
Gitea/docker-base-images/jdk14-alpine/pipeline/head This commit looks good
Details
Gitea/docker-base-images/jdk14-alpine/pipeline/head This commit looks good
Details
parent
049a3e46ea
commit
85ba4576c0
|
@ -9,7 +9,7 @@ def resolveImageName(env) {
|
|||
pipeline {
|
||||
agent {
|
||||
docker {
|
||||
image 'alpine:3.17.3'
|
||||
image 'git.tswf.io/docker-base-images/alpine-base:1.0.0-3.17.3'
|
||||
// Mount docker socket for docker-in-docker
|
||||
args '-v /var/run/docker.sock:/var/run/docker.sock'
|
||||
}
|
||||
|
@ -17,16 +17,6 @@ pipeline {
|
|||
stages {
|
||||
stage('prepare') {
|
||||
steps {
|
||||
sh """
|
||||
apk update && \
|
||||
apk add --no-cache git curl
|
||||
"""
|
||||
|
||||
sh """curl -fsSLO https://get.docker.com/builds/Linux/x86_64/docker-17.04.0-ce.tgz \
|
||||
&& tar xzvf docker-17.04.0-ce.tgz \
|
||||
&& mv docker/docker /usr/local/bin \
|
||||
&& rm -r docker docker-17.04.0-ce.tgz"""
|
||||
|
||||
script {
|
||||
env.IMAGE_BASE_NAME = "jdk14-alpine"
|
||||
env.RELEASE_TAG_PREFIX = "release-"
|
||||
|
|
Loading…
Reference in New Issue