modified: Dockerfile
modified: Jenkinsfile Added k8s auto-deploy to jenkinsfile
This commit is contained in:
parent
53dc85fb29
commit
55c9fca389
@ -7,6 +7,7 @@ MAINTAINER “Jonathan Ervine” <docker@ervine.org>
|
||||
# Create mediaservice user
|
||||
ENV LANG='en_US.UTF-8' \
|
||||
LANGUAGE='en_US.UTF-8' \
|
||||
BUILD_DATE='06-04-2020' \
|
||||
TERM='xterm' \
|
||||
HTPC_USER='mediaservice' \
|
||||
HTPC_GROUP='mediaservice' \
|
||||
|
||||
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -14,10 +14,10 @@ node("docker-node") {
|
||||
stage "publish"
|
||||
app.push("${env.BUILD_NUMBER}")
|
||||
app.push("latest")
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
currentBuild.result = 'FAILURE'
|
||||
|
||||
stage('Deploy on K8s'){
|
||||
sh "/usr/local/bin/kubectl -n media delete po watcher-0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user