modified: Dockerfile
modified: Jenkinsfile
This commit is contained in:
Vendored
+4
-4
@@ -1,7 +1,7 @@
|
||||
node("docker-node") {
|
||||
docker.withRegistry('https://harbor.ervine.dev', 'jenkins-to-harbor') {
|
||||
|
||||
git branch: "v3-dev", url: "ssh://git@git.ervine.org:2222/jonny/x86_64-alpine-sonarr", credentialsId: 'jenkins-to-git'
|
||||
git branch: "3.11.6", url: "ssh://git@git.ervine.org/jonny/x86_64-alpine-sonarr", credentialsId: 'jenkins-to-git'
|
||||
|
||||
sh "git rev-parse HEAD > .git/commit-id"
|
||||
def commit_id = readFile('.git/commit-id').trim()
|
||||
@@ -12,11 +12,11 @@ node("docker-node") {
|
||||
def app = docker.build "library/x86_64/alpine/sonarr"
|
||||
|
||||
stage "publish"
|
||||
app.push("v3.0.3.748")
|
||||
app.push("v3")
|
||||
app.push("v2.0.0.5344")
|
||||
app.push("v2")
|
||||
|
||||
stage('Deploy on K8s'){
|
||||
sh "/usr/local/bin/kubectl -n media delete po sonarr3-0"
|
||||
sh "/usr/local/bin/kubectl -n media delete po sonarr-0"
|
||||
}
|
||||
}
|
||||
catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user