diff --git a/build-icecast.jenkins b/build-icecast.jenkins new file mode 100644 index 0000000..919811e --- /dev/null +++ b/build-icecast.jenkins @@ -0,0 +1,35 @@ +#!groovy + +def repository = "registry.c.test-chamber-13.lan" +def repositoryCreds = "harbor-repository-creds" + +def dockerFile = """FROM ${repository}/dockerhub/library/alpine:latest + +LABEL org.opencontainers.image.authors="The_Spider " + +RUN apk add --no-cache icecast && \ + mkdir /icecast +""" + +def label = "kubernetes-${UUID.randomUUID().toString()}" +def templateName = "pipeline-worker" +podTemplate( + label: label, + name: templateName, + yaml: functions.podYaml( + repo: repository, + templateName: templateName, + kaniko: true + ) +) { + node (label) { + def workspace = pwd() + + functions.buildContainer( + repository: "registry.hub.docker.com", + imageDest: "registry.hub.docker.com/thespider/icecast:latest", + dockerFile: dockerFile, + repoCreds: "dockerhub-repository-creds", + ) + } +} \ No newline at end of file