@@ -54,7 +54,7 @@ export class Install {
54
54
return this . setPlugin ( toolPath , dest ) ;
55
55
}
56
56
57
- public async setStandalone ( toolPath : string , dest : string ) : Promise < string > {
57
+ private async setStandalone ( toolPath : string , dest : string ) : Promise < string > {
58
58
const toolBinPath = path . join ( toolPath , os . platform ( ) == 'win32' ? 'docker-buildx.exe' : 'docker-buildx' ) ;
59
59
const binDir = path . join ( dest , 'bin' ) ;
60
60
if ( ! fs . existsSync ( binDir ) ) {
@@ -68,7 +68,7 @@ export class Install {
68
68
return buildxPath ;
69
69
}
70
70
71
- public async setPlugin ( toolPath : string , dest : string ) : Promise < string > {
71
+ private async setPlugin ( toolPath : string , dest : string ) : Promise < string > {
72
72
const toolBinPath = path . join ( toolPath , os . platform ( ) == 'win32' ? 'docker-buildx.exe' : 'docker-buildx' ) ;
73
73
const pluginsDir : string = path . join ( dest , 'cli-plugins' ) ;
74
74
if ( ! fs . existsSync ( pluginsDir ) ) {
@@ -124,8 +124,7 @@ export class Install {
124
124
}
125
125
126
126
public static async getRelease ( version : string ) : Promise < GitHubRelease > {
127
- // FIXME: Use https://raw.githubusercontent.com/docker/actions-toolkit/main/.github/buildx-releases.json when repo public
128
- const url = `https://raw.githubusercontent.com/docker/buildx/master/.github/releases.json` ;
127
+ const url = `https://raw.githubusercontent.com/docker/actions-toolkit/main/.github/buildx-releases.json` ;
129
128
const http : httpm . HttpClient = new httpm . HttpClient ( 'docker-actions-toolkit' ) ;
130
129
const resp : httpm . HttpClientResponse = await http . get ( url ) ;
131
130
const body = await resp . readBody ( ) ;
0 commit comments