chore: changed agent base image to own alpine-base
Gitea/docker-base-images/jdk14-alpine/pipeline/head This commit looks good Details

master release-0.1.3
amorozov 2023-04-04 19:40:52 +03:00
parent 6a665ddc9c
commit d1489e801f
2 changed files with 1 additions and 4 deletions

View File

@ -44,5 +44,3 @@ RUN set -o errexit -o nounset && echo "Installing build dependencies" && \
echo "Editing startGroovy to include java.xml.bind module" && \ echo "Editing startGroovy to include java.xml.bind module" && \
sed --in-place 's|startGroovy ( ) {|startGroovy ( ) {\n JAVA_OPTS="$JAVA_OPTS --add-modules=ALL-SYSTEM"|' "${GROOVY_HOME}/bin/startGroovy" sed --in-place 's|startGroovy ( ) {|startGroovy ( ) {\n JAVA_OPTS="$JAVA_OPTS --add-modules=ALL-SYSTEM"|' "${GROOVY_HOME}/bin/startGroovy"
RUN apk --no-cache add openssh

3
Jenkinsfile vendored
View File

@ -9,7 +9,7 @@ def resolveImageName(env) {
pipeline { pipeline {
agent { agent {
docker { 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 // 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'
} }
@ -17,7 +17,6 @@ pipeline {
stages { stages {
stage('prepare') { stage('prepare') {
steps { steps {
sh "apk update && apk add --no-cache git docker-cli"
script { script {
env.IMAGE_BASE_NAME = "jdk14-alpine" env.IMAGE_BASE_NAME = "jdk14-alpine"
env.RELEASE_TAG_PREFIX = "release-" env.RELEASE_TAG_PREFIX = "release-"