package definations

This commit is contained in:
Hyatt 2022-05-02 10:15:17 -05:00
parent 8afdf9e045
commit 247da1d742
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

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