build with docker libs

This commit is contained in:
Kameron Kenny 2024-06-26 13:23:39 -04:00
parent faf78727d3
commit da3a80cc40
No known key found for this signature in database
GPG Key ID: E5006629839D2276
1 changed files with 3 additions and 3 deletions

6
Jenkinsfile vendored
View File

@ -5,9 +5,6 @@ pipeline {
} }
} }
def dockerfile = 'Dockerfile'
def telegrafImage = docker.build("telegraf:${env.BUILD_ID}", "-f ${dockerfile} .")
stages { stages {
stage("verify tooling") { stage("verify tooling") {
steps { steps {
@ -22,6 +19,9 @@ pipeline {
stage('Build telegraf') { stage('Build telegraf') {
steps { steps {
script { script {
def dockerfile = 'Dockerfile'
def telegrafImage = docker.build("telegraf:${env.BUILD_ID}", "-f ${dockerfile} .")
docker.withRegistry('http://docker-registry1.in.thelinuxpro.net:5000') { docker.withRegistry('http://docker-registry1.in.thelinuxpro.net:5000') {
telegrafImage.push() telegrafImage.push()
telegrafImage.push('latest') telegrafImage.push('latest')