mirror of
https://github.moeyy.xyz/https://github.com/docker/setup-docker-action.git
synced 2025-10-28 04:06:41 +08:00
Compare commits
2 Commits
b560fcd461
...
1211ebfa1f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1211ebfa1f | ||
|
|
63f2e57f85 |
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,6 +13,9 @@ import {Undock} from '@docker/actions-toolkit/lib/undock/undock';
|
|||||||
import * as context from './context';
|
import * as context from './context';
|
||||||
import * as stateHelper from './state-helper';
|
import * as stateHelper from './state-helper';
|
||||||
|
|
||||||
|
const regctlDefaultVersion = 'v0.8.3';
|
||||||
|
const undockDefaultVersion = 'v0.10.0';
|
||||||
|
|
||||||
actionsToolkit.run(
|
actionsToolkit.run(
|
||||||
// main
|
// main
|
||||||
async () => {
|
async () => {
|
||||||
@ -27,7 +30,9 @@ actionsToolkit.run(
|
|||||||
await core.group(`Download and install regctl`, async () => {
|
await core.group(`Download and install regctl`, async () => {
|
||||||
const regclientInstall = new RegclientInstall();
|
const regclientInstall = new RegclientInstall();
|
||||||
const regclientBinPath = await regclientInstall.download(
|
const regclientBinPath = await regclientInstall.download(
|
||||||
process.env.REGCTL_VERSION && process.env.REGCTL_VERSION.trim() ? process.env.REGCTL_VERSION : 'v0.8.3',
|
process.env.REGCTL_VERSION && process.env.REGCTL_VERSION.trim()
|
||||||
|
? process.env.REGCTL_VERSION
|
||||||
|
: regctlDefaultVersion,
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
await regclientInstall.install(regclientBinPath);
|
await regclientInstall.install(regclientBinPath);
|
||||||
@ -35,7 +40,9 @@ actionsToolkit.run(
|
|||||||
await core.group(`Download and install undock`, async () => {
|
await core.group(`Download and install undock`, async () => {
|
||||||
const undockInstall = new UndockInstall();
|
const undockInstall = new UndockInstall();
|
||||||
const undockBinPath = await undockInstall.download(
|
const undockBinPath = await undockInstall.download(
|
||||||
process.env.UNDOCK_VERSION && process.env.UNDOCK_VERSION.trim() ? process.env.UNDOCK_VERSION : 'v0.10.0',
|
process.env.UNDOCK_VERSION && process.env.UNDOCK_VERSION.trim()
|
||||||
|
? process.env.UNDOCK_VERSION
|
||||||
|
: undockDefaultVersion,
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
await undockInstall.install(undockBinPath);
|
await undockInstall.install(undockBinPath);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user