@@ -11,7 +11,7 @@ const prep = require('./prep');
1111const builderName = 'dev-containers-builder' ;
1212
1313async function push ( repo , release , updateLatest , registry , registryPath , stubRegistry ,
14- stubRegistryPath , pushImages , prepOnly , definitionsToSkip , page , pageTotal , replaceImages , definitionId ) {
14+ stubRegistryPath , pushImages , prepOnly , definitionsToSkip , page , pageTotal , replaceImages , definitionId , vscodeRegistryPath ) {
1515
1616 // Optional argument defaults
1717 prepOnly = typeof prepOnly === 'undefined' ? false : prepOnly ;
@@ -45,14 +45,14 @@ async function push(repo, release, updateLatest, registry, registryPath, stubReg
4545 await asyncUtils . forEach ( definitionsToPush , async ( currentDefinitionId ) => {
4646 console . log ( `**** Pushing ${ currentDefinitionId } ${ release } ****` ) ;
4747 await pushImage (
48- currentDefinitionId , repo , release , updateLatest , registry , registryPath , stubRegistry , stubRegistryPath , prepOnly , pushImages , replaceImages ) ;
48+ currentDefinitionId , repo , release , updateLatest , registry , registryPath , stubRegistry , stubRegistryPath , prepOnly , pushImages , replaceImages , vscodeRegistryPath ) ;
4949 } ) ;
5050
5151 return stagingFolder ;
5252}
5353
5454async function pushImage ( definitionId , repo , release , updateLatest ,
55- registry , registryPath , stubRegistry , stubRegistryPath , prepOnly , pushImages , replaceImage ) {
55+ registry , registryPath , stubRegistry , stubRegistryPath , prepOnly , pushImages , replaceImage , vscodeRegistryPath ) {
5656 const definitionPath = configUtils . getDefinitionPath ( definitionId ) ;
5757 const dotDevContainerPath = definitionPath ;
5858 // Use Dockerfile for image build
@@ -93,9 +93,8 @@ async function pushImage(definitionId, repo, release, updateLatest,
9393 const imageNamesWithVersionTags = configUtils . getTagList ( definitionId , release , updateLatest , registry , registryPath , variant ) ;
9494 const imageName = imageNamesWithVersionTags [ 0 ] . split ( ':' ) [ 0 ] ;
9595
96- // Temporary change to dual publish an image to devcontainers and vscode/devcontainers
97- const vscodeContainerRegistyPath = configUtils . getConfig ( 'vscodeContainerRegistryPath' , 'public/vscode/devcontainers' ) ;
98- const vscodeImageNamesWithVersionTags = configUtils . getTagList ( definitionId , release , updateLatest , registry , vscodeContainerRegistyPath , variant ) ;
96+ // Dual publish image to devcontainers and vscode/devcontainers
97+ const vscodeImageNamesWithVersionTags = configUtils . getTagList ( definitionId , release , updateLatest , registry , vscodeRegistryPath , variant ) ;
9998 const vscodeImageName = vscodeImageNamesWithVersionTags [ 0 ] . split ( ':' ) [ 0 ] ;
10099
101100 console . log ( `(*) Tags:${ imageNamesWithVersionTags . reduce ( ( prev , current ) => prev += `\n ${ current } ` , '' ) } ` ) ;
0 commit comments