update version to variable
This commit is contained in:
parent
1e00bb7188
commit
5f78400080
@ -8,6 +8,8 @@ def dockerFile
|
||||
|
||||
def label = "kubernetes-${UUID.randomUUID().toString()}"
|
||||
def templateName = "pipeline-worker"
|
||||
def darkiceVersion = "1.5"
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
kubernetes {
|
||||
@ -25,13 +27,12 @@ pipeline {
|
||||
script {
|
||||
workspace = pwd()
|
||||
dockerFile = """FROM ${repository}/dockerhub/library/debian:latest as builder
|
||||
ARG DARKICE_VERSION="1.5"
|
||||
|
||||
RUN apt-get update \\
|
||||
&& apt-get --no-install-recommends --yes install ca-certificates curl build-essential tar pkg-config alsa-utils lame libmp3lame-dev libpulse-dev libjack-jackd2-dev libaudio-dev libasound2-dev libshout3-dev libmp3lame-dev \\
|
||||
&& mkdir /tmp/build \\
|
||||
&& curl -L https://github.com/rafael2k/darkice/releases/download/v\${DARKICE_VERSION}/darkice-\${DARKICE_VERSION}.tar.gz | tar -z -x -f - -C /tmp/build \\
|
||||
&& cd /tmp/build/darkice-\${DARKICE_VERSION}/ \\
|
||||
&& curl -L https://github.com/rafael2k/darkice/releases/download/v${darkiceVersion}/darkice-${darkiceVersion}.tar.gz | tar -z -x -f - -C /tmp/build \\
|
||||
&& cd /tmp/build/darkice-${darkiceVersion}/ \\
|
||||
&& ./configure CXXFLAGS="-std=c++11" --with-pulseaudio --with-lame --with-alsa --with-jack \\
|
||||
&& make
|
||||
|
||||
@ -40,7 +41,7 @@ FROM ${repository}/dockerhub/library/debian:latest
|
||||
LABEL org.opencontainers.image.authors="The_Spider <spider@smoothnet.org>"
|
||||
LABEL org.opencontainers.image.title="darkice"
|
||||
|
||||
COPY --from=builder /tmp/build/darkice-\${DARKICE_VERSION}/src/darkice /usr/bin/local/
|
||||
COPY --from=builder /tmp/build/darkice-${darkiceVersion}/src/darkice /usr/bin/local/
|
||||
|
||||
ENTRYPOINT [ "/bin/bash", "-c", "/usr/local/bin/darkice" ]
|
||||
"""
|
||||
|
Reference in New Issue
Block a user