package definations
This commit is contained in:
parent
8afdf9e045
commit
247da1d742
@ -4,10 +4,15 @@ def repository = "registry.c.test-chamber-13.lan"
|
||||
def repositoryCreds = "harbor-repository-creds"
|
||||
|
||||
def workspace
|
||||
def dockerFile
|
||||
|
||||
def AlpineGlibcBaseURL = "https://nexus.c.test-chamber-13.lan/repository/github-releases/sgerrand/alpine-pkg-glibc/releases/download"
|
||||
def staticVersion = "2.34-r0"
|
||||
def AlpineGlibcPackageVersion
|
||||
def AlpineGlibcBasePackageFilename
|
||||
def AlpineGlibcBinPackageFilename
|
||||
def AlpineGlibcI18nPackageFilename
|
||||
|
||||
def staticVersion = "2.34-r0"
|
||||
def GlibcLanguage = "C.UTF-8"
|
||||
def TimeZone = "America/Chicago"
|
||||
|
||||
@ -39,6 +44,11 @@ pipeline {
|
||||
apk add --no-cache jq
|
||||
fi
|
||||
"""
|
||||
|
||||
AlpineGlibcPackageVersion = sh (
|
||||
script: "curl --silent --location --fail \"https://api.github.com/repos/sgerrand/alpine-pkg-glibc/releases\" | jq -r .[0].name",
|
||||
returnStdout: true
|
||||
).trim()
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -48,15 +58,11 @@ pipeline {
|
||||
steps {
|
||||
container ('kaniko') {
|
||||
script {
|
||||
def AlpineGlibcPackageVersion = sh (
|
||||
script: "curl --silent --location --fail \"https://api.github.com/repos/sgerrand/alpine-pkg-glibc/releases\" | jq -r .[0].name",
|
||||
returnStdout: true
|
||||
).trim()
|
||||
def AlpineGlibcBasePackageFilename = "glibc-${AlpineGlibcPackageVersion}.apk"
|
||||
def AlpineGlibcBinPackageFilename = "glibc-bin-${AlpineGlibcPackageVersion}.apk"
|
||||
def AlpineGlibcI18nPackageFilename = "glibc-i18n-${AlpineGlibcPackageVersion}.apk"
|
||||
AlpineGlibcBasePackageFilename = "glibc-${AlpineGlibcPackageVersion}.apk"
|
||||
AlpineGlibcBinPackageFilename = "glibc-bin-${AlpineGlibcPackageVersion}.apk"
|
||||
AlpineGlibcI18nPackageFilename = "glibc-i18n-${AlpineGlibcPackageVersion}.apk"
|
||||
|
||||
def dockerFile = """
|
||||
dockerFile = """
|
||||
FROM registry.c.test-chamber-13.lan/library/alpine:latest
|
||||
|
||||
LABEL org.opencontainers.image.authors="The_Spider <spider@smoothnet.org>"
|
||||
@ -122,12 +128,11 @@ RUN apk add --update --no-cache --virtual=.build-dependencies \\
|
||||
steps {
|
||||
container ('kaniko') {
|
||||
script {
|
||||
def AlpineGlibcPackageVersion = staticVersion
|
||||
def AlpineGlibcBasePackageFilename = "glibc-${AlpineGlibcPackageVersion}.apk"
|
||||
def AlpineGlibcBinPackageFilename = "glibc-bin-${AlpineGlibcPackageVersion}.apk"
|
||||
def AlpineGlibcI18nPackageFilename = "glibc-i18n-${AlpineGlibcPackageVersion}.apk"
|
||||
AlpineGlibcBasePackageFilename = "glibc-${staticVersion}.apk"
|
||||
AlpineGlibcBinPackageFilename = "glibc-bin-${staticVersion}.apk"
|
||||
AlpineGlibcI18nPackageFilename = "glibc-i18n-${staticVersion}.apk"
|
||||
|
||||
def dockerFile = """
|
||||
dockerFile = """
|
||||
FROM registry.c.test-chamber-13.lan/library/alpine:latest
|
||||
|
||||
LABEL org.opencontainers.image.authors="The_Spider <spider@smoothnet.org>"
|
||||
|
Reference in New Issue
Block a user