docker/install: Remove deprecated version and channel

Use InstallSource instead

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
Paweł Gronowski
2024-10-15 12:38:25 +02:00
parent b8a96071a8
commit de390e0872
3 changed files with 12 additions and 11 deletions

View File

@@ -51,13 +51,6 @@ export type InstallSource = InstallSourceImage | InstallSourceArchive;
export interface InstallOpts {
source?: InstallSource;
// @deprecated
// Use `source = InstallSourceTypeArchive{version: ..., channel: ...}` instead
version?: string;
// @deprecated
// Use `source = InstallSourceTypeArchive{version: ..., channel: ...}` instead
channel?: string;
// ...
runDir: string;
contextName?: string;
@@ -84,8 +77,8 @@ export class Install {
this.runDir = opts.runDir;
this.source = opts.source || {
type: 'archive',
version: opts.version || 'latest',
channel: opts.channel || 'stable'
version: 'latest',
channel: 'stable'
};
this.contextName = opts.contextName || 'setup-docker-action';
this.daemonConfig = opts.daemonConfig;