build with docker libs

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

5
Jenkinsfile vendored
View File

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