mirror of
https://github.moeyy.xyz/https://github.com/docker/setup-docker-action.git
synced 2025-10-27 19:28:53 +08:00
Compare commits
2 Commits
1211ebfa1f
...
b560fcd461
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b560fcd461 | ||
|
|
f5a847d02a |
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
11
src/main.ts
11
src/main.ts
@ -13,9 +13,6 @@ import {Undock} from '@docker/actions-toolkit/lib/undock/undock';
|
||||
import * as context from './context';
|
||||
import * as stateHelper from './state-helper';
|
||||
|
||||
const regctlDefaultVersion = 'v0.8.3';
|
||||
const undockDefaultVersion = 'v0.10.0';
|
||||
|
||||
actionsToolkit.run(
|
||||
// main
|
||||
async () => {
|
||||
@ -30,9 +27,7 @@ actionsToolkit.run(
|
||||
await core.group(`Download and install regctl`, async () => {
|
||||
const regclientInstall = new RegclientInstall();
|
||||
const regclientBinPath = await regclientInstall.download(
|
||||
process.env.REGCTL_VERSION && process.env.REGCTL_VERSION.trim()
|
||||
? process.env.REGCTL_VERSION
|
||||
: regctlDefaultVersion,
|
||||
process.env.REGCTL_VERSION && process.env.REGCTL_VERSION.trim() ? process.env.REGCTL_VERSION : 'v0.8.3',
|
||||
true
|
||||
);
|
||||
await regclientInstall.install(regclientBinPath);
|
||||
@ -40,9 +35,7 @@ actionsToolkit.run(
|
||||
await core.group(`Download and install undock`, async () => {
|
||||
const undockInstall = new UndockInstall();
|
||||
const undockBinPath = await undockInstall.download(
|
||||
process.env.UNDOCK_VERSION && process.env.UNDOCK_VERSION.trim()
|
||||
? process.env.UNDOCK_VERSION
|
||||
: undockDefaultVersion,
|
||||
process.env.UNDOCK_VERSION && process.env.UNDOCK_VERSION.trim() ? process.env.UNDOCK_VERSION : 'v0.10.0',
|
||||
true
|
||||
);
|
||||
await undockInstall.install(undockBinPath);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user