File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -365,14 +365,8 @@ export async function deployToDevWithInstaller(deploymentConfig: DeploymentConfi
365365 const auth = exec ( `echo -n "_json_key:$(kubectl get secret ${ IMAGE_PULL_SECRET_NAME } --namespace=keys -o yaml \
366366 | yq r - data['.dockerconfigjson'] \
367367 | base64 -d)" | base64 -w 0` , { silent : true } ) . stdout . trim ( ) ;
368- fs . writeFileSync ( `./${ IMAGE_PULL_SECRET_NAME } ` ,
369- `{
370- "auths": {
371- "eu.gcr.io": {
372- "auth": "${ auth } "
373- }
374- }
375- }` ) ;
368+ const dockerConfig = { auths : { "eu.gcr.io" : { auth : auth } } } ;
369+ fs . writeFileSync ( `./${ IMAGE_PULL_SECRET_NAME } ` , JSON . stringify ( dockerConfig ) ) ;
376370 exec ( `kubectl create secret docker-registry ${ IMAGE_PULL_SECRET_NAME } -n ${ namespace } --from-file=.dockerconfigjson=./${ IMAGE_PULL_SECRET_NAME } ` ) ;
377371 werft . done ( installerSlices . IMAGE_PULL_SECRET ) ;
378372 }
You can’t perform that action at this time.
0 commit comments