'update files with ansible'
This commit is contained in:
parent
f581360d81
commit
0db51c9198
12
Dockerfile
12
Dockerfile
@ -1,22 +1,20 @@
|
||||
# Base on latest (edge) alpine image
|
||||
FROM harbor.ervine.dev/public/x86_64/alpine:v3.13
|
||||
FROM harbor.ervine.dev/public/x86_64/alpine:v3.13.1
|
||||
|
||||
MAINTAINER “Jonathan Ervine” <docker@ervine.org>
|
||||
LABEL MAINTAINER "Jonathan Ervine docker@ervine.org"
|
||||
|
||||
# Install updates
|
||||
ENV LANG='en_US.UTF-8' \
|
||||
LANGUAGE='en_US.UTF-8' \
|
||||
TERM='xterm' \
|
||||
VERSION='0.5.10'
|
||||
|
||||
TERM='xterm'
|
||||
RUN echo http://dl-4.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && \
|
||||
apk update && \
|
||||
apk -U upgrade --ignore alpine-baselayout && \
|
||||
apk -U add python3
|
||||
|
||||
RUN wget https://github.com/pymedusa/Medusa/archive/v$VERSION.tar.gz -O medusa.tar.gz && \
|
||||
RUN wget https://github.com/pymedusa/Medusa/archive/v0.5.9.tar.gz -O medusa.tar.gz && \
|
||||
tar zxvf medusa.tar.gz && \
|
||||
mv Medusa-$VERSION medusa && \
|
||||
mv Medusa-0.5.9 medusa && \
|
||||
rm -rf medusa.tar.gz && \
|
||||
apk del make gcc g++ && \
|
||||
rm -rf /tmp/src && \
|
||||
|
||||
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -3,8 +3,7 @@ kind: Pod
|
||||
spec:
|
||||
containers:
|
||||
- name: kaniko
|
||||
#image: gcr.io/kaniko-project/executor:debug-539ddefcae3fd6b411a95982a830d987f4214251
|
||||
image: gcr.io/kaniko-project/executor:debug-v1.0.0
|
||||
image: gcr.io/kaniko-project/executor:debug
|
||||
imagePullPolicy: Always
|
||||
command:
|
||||
- /busybox/cat
|
||||
@ -23,19 +22,15 @@ spec:
|
||||
path: config.json
|
||||
"""
|
||||
) {
|
||||
|
||||
node(POD_LABEL) {
|
||||
stage('Build with Kaniko') {
|
||||
environment {
|
||||
MEDUSA_VER = "0.4.6"
|
||||
}
|
||||
git url: 'ssh://git@git.ervine.org/jonny/x86_64-alpine-medusa.git', credentialsId: 'jenkins-to-git'
|
||||
container('kaniko') {
|
||||
sh "/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --cache=true --destination=harbor.ervine.dev/public/x86_64/alpine/medusa:0.5 --destination=harbor.ervine.dev/public/x86_64/alpine/medusa:v0.5.10"
|
||||
sh "/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --cache=true --destination=harbor.ervine.dev/public/x86_64/alpine/medusa:v0.5.9"
|
||||
}
|
||||
}
|
||||
stage('Notify gchat') {
|
||||
hangoutsNotify message: "Medusa 0.5.10 on Alpine Linux has built",token: "A2ET831pVslqXTqAx6ycu573r",threadByJob: false
|
||||
hangoutsNotify message: "Medusa 0.5.9 on Alpine Linux has built",token: "A2ET831pVslqXTqAx6ycu573r",threadByJob: false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user