diff --git a/build-alpine.jenkins b/build-alpine.jenkins index 7cb579f..8a881ae 100644 --- a/build-alpine.jenkins +++ b/build-alpine.jenkins @@ -46,8 +46,8 @@ spec: } } - container("kaniko") { - stage("Build Latest Alpine with CA") { + stage("Build Latest Alpine with CA") { + container("kaniko") { def DF = """FROM ${repository}/dockerhub/library/alpine:latest RUN apk add --no-cache --virtual=.packagecache ca-certificates && \\ @@ -71,8 +71,10 @@ RUN apk add --no-cache --virtual=.packagecache ca-certificates && \\ writeFile(file: workspace + "/Dockerfile", text: DF) sh "/kaniko/executor --cleanup --context \"${workspace}\" -f \"${workspace}/Dockerfile\" --destination \"${repository}/library/alpine:latest\"" } + } - stage("Build Edge Alpine with CA") { + stage("Build Edge Alpine with CA") { + container("kaniko") { def DF = """FROM ${repository}/dockerhub/library/alpine:edge RUN apk add --no-cache --virtual=.packagecache ca-certificates && \\