a jenkinsfile to build
ben/playonlinux-docker/pipeline/head This commit looks good
Details
ben/playonlinux-docker/pipeline/head This commit looks good
Details
parent
00e8f6c971
commit
62f2deaba6
@ -0,0 +1,30 @@
|
||||
pipeline {
|
||||
agent any
|
||||
triggers {
|
||||
cron "H 23 * * *"
|
||||
}
|
||||
options {
|
||||
timestamps()
|
||||
ansiColor("xterm")
|
||||
disableConcurrentBuilds()
|
||||
}
|
||||
stages {
|
||||
stage('build') {
|
||||
steps {
|
||||
sh "./build.sh"
|
||||
}
|
||||
}
|
||||
stage('push') {
|
||||
steps {
|
||||
sh "./push.sh"
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
cleanup {
|
||||
cleanWs(deleteDirs: true,
|
||||
disableDeferredWipeout: true,
|
||||
notFailBuild: true)
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
export IMAGE=playonlinux:latest
|
||||
|
||||
echo "pushing to dockerhub as benediktkr/${IMAGE}"
|
||||
docker tag ${IMAGE} benediktkr/${IMAGE}
|
||||
docker push benediktkr/${IMAGE}
|
||||
|
||||
echo
|
||||
|
||||
echo "pushing to git.sudo.is as ben/${IMAGE}"
|
||||
docker tag ${IMAGE} git.sudo.is/ben/${IMAGE}
|
||||
docker push git.sudo.is/ben/${IMAGE}
|
Loading…
Reference in New Issue