new file: Dockerfile
new file: Jenkinsfile new file: apache.ini new file: hosts.conf new file: icinga2.ini new file: php-fm.ini new file: services.conf new file: start.sh new file: supervisord.conf Initial commit
This commit is contained in:
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
node("docker-node") {
|
||||
docker.withRegistry('https://harbor.ervine.dev', 'jenkins-to-harbor') {
|
||||
|
||||
git branch: "centos7", url: "ssh://git@git.ervine.org:2222/jonny/x86_64-centos-icinga2", credentialsId: 'jenkins-to-git'
|
||||
|
||||
sh "git rev-parse HEAD > .git/commit-id"
|
||||
def commit_id = readFile('.git/commit-id').trim()
|
||||
println commit_id
|
||||
|
||||
stage "build"
|
||||
def app = docker.build "library/x86_64/centos/icinga2"
|
||||
|
||||
stage "publish"
|
||||
app.push("${env.BUILD_NUMBER}")
|
||||
app.push("latest")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user