Added GChat notification
This commit is contained in:
parent
c6512affb6
commit
573f664708
@ -1,7 +1,7 @@
|
|||||||
# Base on latest (edge) alpine image
|
# Base on latest (edge) alpine image
|
||||||
FROM harbor.ervine.dev/library/x86_64/alpine/alpine:3.12
|
FROM harbor.ervine.dev/public/x86_64/alpine:v3.12
|
||||||
|
|
||||||
MAINTAINER “Jonathan Ervine” <docker@ervine.org>
|
LABEL "Maintainer Jonathan Ervine <docker@ervine.org>"
|
||||||
|
|
||||||
# Install updates
|
# Install updates
|
||||||
# Create mediaservice user
|
# Create mediaservice user
|
||||||
|
|||||||
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -27,8 +27,12 @@ spec:
|
|||||||
stage('Build with Kaniko') {
|
stage('Build with Kaniko') {
|
||||||
git 'https://git.ervine.org/jonny/x86_64-alpine-htpcmgr.git'
|
git 'https://git.ervine.org/jonny/x86_64-alpine-htpcmgr.git'
|
||||||
container('kaniko') {
|
container('kaniko') {
|
||||||
sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --cache=true --destination=harbor.ervine.dev/library/x86_64/alpine/htpc-mgr:latest --destination=harbor.ervine.dev/library/x86_64/alpine/htpc-mgr:2019'
|
sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --cache=true --destination=harbor.ervine.dev/public/x86_64/alpine/htpc-mgr:latest --destination=harbor.ervine.dev/public/x86_64/alpine/htpc-mgr:2019'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage('Notify gchat') {
|
||||||
|
hangoutsNotify message: "Alpine Linux 3.12.0 with HTPC Manager has built",token: "A2ET831pVslqXTqAx6ycu573r",threadByJob: false
|
||||||
|
}
|
||||||
|
|||||||
@ -1,27 +0,0 @@
|
|||||||
node("docker-node") {
|
|
||||||
docker.withRegistry('https://harbor.ervine.dev', 'jenkins-to-harbor') {
|
|
||||||
|
|
||||||
git branch: "master", url: "ssh://git@git.ervine.org/jonny/x86_64-alpine-htpcmgr", credentialsId: 'jenkins-to-git'
|
|
||||||
|
|
||||||
sh "git rev-parse HEAD > .git/commit-id"
|
|
||||||
def commit_id = readFile('.git/commit-id').trim()
|
|
||||||
println commit_id
|
|
||||||
|
|
||||||
try {
|
|
||||||
|
|
||||||
stage "build"
|
|
||||||
def app = docker.build "library/x86_64/alpine/htpc-mgr"
|
|
||||||
|
|
||||||
stage "publish"
|
|
||||||
app.push("${env.BUILD_NUMBER}")
|
|
||||||
app.push("latest")
|
|
||||||
|
|
||||||
stage('Deploy on K8s'){
|
|
||||||
sh "/usr/local/bin/kubectl -n media delete po htpc-0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (err) {
|
|
||||||
currentBuild.result = 'FAILURE'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user