Skip to content

Commit

Permalink
delay push
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaskey committed Nov 7, 2022
1 parent 529e544 commit df3f449
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pipeline {
sh 'docker buildx ls'
sh "docker buildx build --platform linux/amd64 -t ${imagename} ."
sh "docker buildx build --platform linux/arm64 -t ${imagename}:arm64 ."
// sh 'docker buildx build --push --platform linux/arm64,linux/amd64 -t i2incommon/shib-idp:$tag .'
//sh 'docker buildx build --push --platform linux/arm64,linux/amd64 -t i2incommon/shib-idp:$tag .'
} catch(error) {
def error_details = readFile('./debug');
def message = "BUILD ERROR: There was a problem building ${maintainer}/${imagename}:${tag}. \n\n ${error_details}"
Expand Down Expand Up @@ -99,7 +99,8 @@ pipeline {
// Scan container for all vulnerability levels
echo "Scanning for all vulnerabilities..."
sh 'mkdir -p reports'
sh "trivy image --ignore-unfixed --vuln-type os,library --severity CRITICAL,HIGH --no-progress --security-checks vuln --format template --template '@html.tpl' -o reports/container-scan.html ${maintainer}/${imagename}:${tag}"
// sh "trivy image --ignore-unfixed --vuln-type os,library --severity CRITICAL,HIGH --no-progress --security-checks vuln --format template --template '@html.tpl' -o reports/container-scan.html ${maintainer}/${imagename}:${tag}"
sh "trivy image --ignore-unfixed --vuln-type os,library --severity CRITICAL,HIGH --no-progress --security-checks vuln --format template --template '@html.tpl' -o reports/container-scan.html ${imagename}"
publishHTML target : [
allowMissing: true,
alwaysLinkToLastBuild: true,
Expand Down Expand Up @@ -131,8 +132,8 @@ pipeline {
docker.withRegistry('https://registry.hub.docker.com/', "dockerhub-tier") {
// baseImg.push("$tag")
// echo "already pushed to Dockerhub"
echo "Pushing image to Docker hub"
sh "docker buildx build --push --platform linux/arm64,linux/amd64 -t ${maintainer}/${imagename}:$tag ."
// echo "Pushing image to Docker hub"
// sh "docker buildx build --push --platform linux/arm64,linux/amd64 -t ${maintainer}/${imagename}:$tag ."
}
}
}
Expand Down

0 comments on commit df3f449

Please sign in to comment.