Skip to content

Commit

Permalink
add docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Giwi committed Mar 29, 2022
1 parent df1c3ef commit fa3ed54
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,21 @@ pipeline {
when {
expression { return isItATagCommit() }
}
options {
timeout(time: 2, unit: 'HOURS')
}
input {
message 'Should we deploy to DockerHub?'
}
steps {
sh 'DOCKER_BUILD_KIT=1 DOCKER_CLI_EXPERIMENTAL=enabled docker buildx use multiarch'
sh "DOCKER_BUILD_KIT=1 DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --push --platform linux/amd64,linux/arm64,linux/arm/v7 -t warp10io/warpfleetsynchronizer:latest -t warp10io/warpfleetsynchronizer:${version} ."
sh "docker system prune --force --all --volumes --filter 'label=maintainer=contact@senx.io'"
this.notifyBuild('PUBLISHED', version)
parallel {
stage('Deploy to DockerHub') {
options {
timeout(time: 2, unit: 'HOURS')
}
input {
message 'Should we deploy to DockerHub?'
}
steps {
sh 'DOCKER_BUILD_KIT=1 DOCKER_CLI_EXPERIMENTAL=enabled docker buildx use multiarch'
sh "DOCKER_BUILD_KIT=1 DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --push --platform linux/amd64,linux/arm64,linux/arm/v7 -t warp10io/warpfleetsynchronizer:latest -t warp10io/warpfleetsynchronizer:${version} ."
sh "docker system prune --force --all --volumes --filter 'label=maintainer=contact@senx.io'"
this.notifyBuild('PUBLISHED', version)
}
}
}
}
}
Expand Down

0 comments on commit fa3ed54

Please sign in to comment.