From 4d28027f932bcc9ed50aba72a4fd1d30299dcb2e Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Apr 18 2018 01:44:27 +0000 Subject: Try pushing images also to quay.io. I hear it's a thing. --- diff --git a/Jenkinsfile b/Jenkinsfile index a59fac4..34762db 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -137,6 +137,12 @@ node('docker') { def image = docker.build "factory2/waiverdb:${appversion}", "--build-arg waiverdb_rpm=$f26_rpm --build-arg waiverdb_common_rpm=$waiverdb_common ." image.push() } + docker.withRegistry( + 'https://quay.io/', + 'quay-io-factory2-builder-sa-credentials') { + def image = docker.build "factory2/waiverdb:${appversion}", "--build-arg waiverdb_rpm=$f26_rpm --build-arg waiverdb_common_rpm=$waiverdb_common ." + image.push() + } /* Save container version for later steps (this is ugly but I can't find anything better...) */ writeFile file: 'appversion', text: appversion archiveArtifacts artifacts: 'appversion' @@ -211,6 +217,12 @@ node('docker') { def image = docker.image("factory2/waiverdb:${appversion}") image.push('latest') } + docker.withRegistry( + 'https://quay.io/', + 'quay-io-factory2-builder-sa-credentials') { + def image = docker.image("factory2/waiverdb:${appversion}") + image.push('latest') + } } } }