argify
This commit is contained in:
parent
8119dd031f
commit
cad7c91c9b
3 changed files with 7 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
FROM alpine as build
|
||||
ARG ALPINE_VERSION
|
||||
ENV ALPINE_MIRROR https://uk.alpinelinux.org/alpine/v3.8
|
||||
ENV ALPINE_VERSION 3.8.1
|
||||
ENV ALPINE_ARCH x86_64
|
||||
WORKDIR /root
|
||||
RUN apk add --no-cache curl &&\
|
||||
|
|
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
|
@ -6,8 +6,11 @@ pipeline {
|
|||
withDockerRegistry([ credentialsId: "6ff44976-23cd-4cc2-902c-de8c340e65e5", url: "https://reg.zknt.org" ]) {
|
||||
echo 'Starting to build docker image'
|
||||
script {
|
||||
def customImage = docker.build("reg.zknt.org/zknt/alpine:3.8.1")
|
||||
customImage.push()
|
||||
def customImage = docker.build("reg.zknt.org/zknt/alpine", "--build-arg ALPINE_VERSION=$env.BRANCH_NAME .")
|
||||
customImage.push(env.BRANCH_NAME)
|
||||
customImage.push(env.BRANCH_NAME.split(/\./)[0,1].join('.'))
|
||||
customImage.push(env.BRANCH_NAME.split(/\./)[0])
|
||||
customImage.push("latest")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
stock alpine
|
||||
============
|
||||
|
||||
Last update: 2018-11-26
|
||||
Last update: 2018-12-23
|
||||
|
|
Loading…
Add table
Reference in a new issue