@@ -102,6 +102,7 @@ export class Install {
102102 }
103103
104104 public async installStandalone ( toolPath : string , dest ?: string ) : Promise < string > {
105+ core . info ( 'Standalone mode' ) ;
105106 dest = dest || this . context . tmpDir ( ) ;
106107 const toolBinPath = path . join ( toolPath , os . platform ( ) == 'win32' ? 'docker-buildx.exe' : 'docker-buildx' ) ;
107108 const binDir = path . join ( dest , 'bin' ) ;
@@ -111,13 +112,19 @@ export class Install {
111112 const filename : string = os . platform ( ) == 'win32' ? 'buildx.exe' : 'buildx' ;
112113 const buildxPath : string = path . join ( binDir , filename ) ;
113114 fs . copyFileSync ( toolBinPath , buildxPath ) ;
115+
116+ core . info ( 'Fixing perms' ) ;
114117 fs . chmodSync ( buildxPath , '0755' ) ;
118+
115119 core . addPath ( binDir ) ;
116- core . debug ( `Install.installStandalone buildxPath: ${ buildxPath } ` ) ;
120+ core . info ( 'Added Buildx to PATH' ) ;
121+
122+ core . info ( `Binary path: ${ buildxPath } ` ) ;
117123 return buildxPath ;
118124 }
119125
120126 public async installPlugin ( toolPath : string , dest ?: string ) : Promise < string > {
127+ core . info ( 'Docker plugin mode' ) ;
121128 dest = dest || Docker . configDir ;
122129 const toolBinPath = path . join ( toolPath , os . platform ( ) == 'win32' ? 'docker-buildx.exe' : 'docker-buildx' ) ;
123130 const pluginsDir : string = path . join ( dest , 'cli-plugins' ) ;
@@ -127,8 +134,11 @@ export class Install {
127134 const filename : string = os . platform ( ) == 'win32' ? 'docker-buildx.exe' : 'docker-buildx' ;
128135 const pluginPath : string = path . join ( pluginsDir , filename ) ;
129136 fs . copyFileSync ( toolBinPath , pluginPath ) ;
137+
138+ core . info ( 'Fixing perms' ) ;
130139 fs . chmodSync ( pluginPath , '0755' ) ;
131- core . debug ( `Install.installPlugin pluginPath: ${ pluginPath } ` ) ;
140+
141+ core . info ( `Plugin path: ${ pluginPath } ` ) ;
132142 return pluginPath ;
133143 }
134144
@@ -172,9 +182,9 @@ export class Install {
172182 private async fetchBinary ( version : string ) : Promise < string > {
173183 const targetFile : string = os . platform ( ) == 'win32' ? 'docker-buildx.exe' : 'docker-buildx' ;
174184 const downloadURL = util . format ( 'https://github.com/docker/buildx/releases/download/v%s/%s' , version , this . filename ( version ) ) ;
185+ core . info ( `Downloading ${ downloadURL } ` ) ;
175186 const downloadPath = await tc . downloadTool ( downloadURL ) ;
176- core . debug ( `downloadURL: ${ downloadURL } ` ) ;
177- core . debug ( `downloadPath: ${ downloadPath } ` ) ;
187+ core . debug ( `Install.fetchBinary downloadPath: ${ downloadPath } ` ) ;
178188 return await tc . cacheFile ( downloadPath , targetFile , 'buildx' , version ) ;
179189 }
180190
0 commit comments