mirror of
https://github.com/docker/actions-toolkit.git
synced 2024-11-23 03:16:09 +08:00
docker/install: Fix lima failing to download latest Docker archive
Use the actual version number resolved from the Github releases instead of the `latest` string. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
parent
5abb5fce3e
commit
e2acba1767
@ -44,6 +44,7 @@ aarch64:https://cloud.debian.org/images/cloud/bookworm/20231013-1532/debian-12-g
|
|||||||
{type: 'image', tag: '27.3.1'} as InstallSourceImage,
|
{type: 'image', tag: '27.3.1'} as InstallSourceImage,
|
||||||
{type: 'image', tag: 'master'} as InstallSourceImage,
|
{type: 'image', tag: 'master'} as InstallSourceImage,
|
||||||
{type: 'archive', version: 'v26.1.4', channel: 'stable'} as InstallSourceArchive,
|
{type: 'archive', version: 'v26.1.4', channel: 'stable'} as InstallSourceArchive,
|
||||||
|
{type: 'archive', version: 'latest', channel: 'stable'} as InstallSourceArchive,
|
||||||
])(
|
])(
|
||||||
'install docker %s', async (source) => {
|
'install docker %s', async (source) => {
|
||||||
if (process.env.ImageOS && process.env.ImageOS.startsWith('ubuntu')) {
|
if (process.env.ImageOS && process.env.ImageOS.startsWith('ubuntu')) {
|
||||||
|
@ -230,7 +230,7 @@ export class Install {
|
|||||||
daemonConfig: limaDaemonConfig,
|
daemonConfig: limaDaemonConfig,
|
||||||
dockerSock: `${limaDir}/docker.sock`,
|
dockerSock: `${limaDir}/docker.sock`,
|
||||||
srcType: src.type,
|
srcType: src.type,
|
||||||
srcArchiveVersion: srcArchive.version?.replace(/^v/, ''),
|
srcArchiveVersion: this._version, // Use the resolved version (e.g. latest -> 27.4.0)
|
||||||
srcArchiveChannel: srcArchive.channel,
|
srcArchiveChannel: srcArchive.channel,
|
||||||
srcImageTag: (src as InstallSourceImage).tag
|
srcImageTag: (src as InstallSourceImage).tag
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user