Skip to content

Commit 1fc075b

Browse files
committed
feat: docker image now requires config file at runtime
BREAKING CHANGE: Instead of inserting the API key at build time. It now must be mounted during start up time.
1 parent 7e59944 commit 1fc075b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vars/runJenkinsPipeline.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,11 +659,12 @@ def call(){
659659
}
660660
steps{
661661
script{
662+
def registryUrl
662663
configFileProvider([configFile(fileId: 'getmarc_deployapi', variable: 'CONFIG_FILE')]) {
663664
try{
664665
def CONFIG = readJSON(file: CONFIG_FILE)['deploy']
665666
def build_args = CONFIG['docker']['build']['buildArgs'].collect{"--build-arg=${it}"}.join(' ')
666-
def registryUrl = CONFIG['docker']['server']['registry']
667+
registryUrl = CONFIG['docker']['server']['registry']
667668
def remoteRegistryImageName = "${registryUrl.replace('http://', '').replace('https://', '')}/${IMAGE_NAME}:${DOCKER_TAG}"
668669
def localImageName = "${IMAGE_NAME}:${DOCKER_TAG}"
669670

0 commit comments

Comments
 (0)