Compare commits

..

2 Commits

Author SHA1 Message Date
CrazyMax
1211ebfa1f
chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-05-12 14:12:41 +02:00
CrazyMax
63f2e57f85
setup regctl and undock
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-05-12 14:06:55 +02:00
3 changed files with 11 additions and 4 deletions

2
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -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);