@@ -151,15 +151,20 @@ RUN echo "Building image for \${CROSSARCH_ARCH}"`
151151 log ( `Pushing tags ${ tags . join ( ', ' ) } ` )
152152
153153 for ( let tag of tags ) {
154- runCommand ( 'docker' , [ 'tag' , `build:${ arch } ` , `crossarch/${ buildName } :${ arch } -${ tag } ` ] )
155- runCommand ( 'docker' , [ 'push' , `crossarch/${ buildName } :${ arch } -${ tag } ` ] )
154+ await runCommand ( 'docker' , [ 'tag' , `build:${ arch } ` , `crossarch/${ buildName } :${ arch } -${ tag } ` ] )
155+ await runCommand ( 'docker' , [ 'push' , `crossarch/${ buildName } :${ arch } -${ tag } ` ] )
156156 }
157157 }
158158
159159 info ( 'Creating and pushing manifests...' )
160160 for ( const tag of tags ) {
161161 const childImages = BUILD_FOR_ARCHS . map ( arch => `build:${ arch } ` )
162- runCommand ( 'docker' , [ 'manifest' , 'create' , `crossarch/${ buildName } :${ tag } ` , ...childImages ] )
162+ await runCommand ( 'docker' , [
163+ 'manifest' ,
164+ 'create' ,
165+ `crossarch/${ buildName } :${ tag } ` ,
166+ ...childImages ,
167+ ] )
163168 for ( const arch of BUILD_FOR_ARCHS ) {
164169 let archDescription = [ '--os' , 'linux' ]
165170 if ( arch === 'amd64' ) {
@@ -168,7 +173,7 @@ RUN echo "Building image for \${CROSSARCH_ARCH}"`
168173 archDescription = archDescription . concat ( [ '--arch' , 'arm' , '--variant' , 'v7' ] )
169174 }
170175
171- runCommand ( 'docker' , [
176+ await runCommand ( 'docker' , [
172177 'manifest' ,
173178 'annotate' ,
174179 `crossarch/${ buildName } :${ tag } ` ,
@@ -177,7 +182,7 @@ RUN echo "Building image for \${CROSSARCH_ARCH}"`
177182 ] )
178183 }
179184
180- runCommand ( 'docker' , [ 'manifest' , 'push' , `crossarch/${ buildName } :${ tag } ` ] )
185+ await runCommand ( 'docker' , [ 'manifest' , 'push' , `crossarch/${ buildName } :${ tag } ` ] )
181186 }
182187
183188 info ( 'Updating latest published version...' )
0 commit comments