#!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", ) } }