2
0
Fork 0
mirror of https://code.forgejo.org/docker/build-push-action.git synced 2025-09-10 18:00:57 +00:00

refactor: remove nofallback parameter

Remove the nofallback input parameter as it's no longer needed. The action
now assumes that a builder is already configured and available.

Changes:
- Remove nofallback from action.yml inputs
- Remove nofallback from Inputs interface and getInputs function
- Update tests to remove nofallback references
- Also remove setup-only and buildx-version from action.yml (already removed from code)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude 2025-08-01 14:52:41 -04:00
parent fece9d42f3
commit 4c54035b2b
6 changed files with 5 additions and 21 deletions

View file

@ -34,7 +34,6 @@ describe('reportBuildMetrics', () => {
beforeEach(() => {
jest.clearAllMocks();
mockInputs = {
nofallback: false,
setupOnly: false,
platforms: []
};

View file

@ -57,7 +57,6 @@ export interface Inputs {
target: string;
ulimit: string[];
'github-token': string;
nofallback: boolean;
}
export async function getInputs(): Promise<Inputs> {
@ -94,8 +93,7 @@ export async function getInputs(): Promise<Inputs> {
tags: Util.getInputList('tags'),
target: core.getInput('target'),
ulimit: Util.getInputList('ulimit', {ignoreComma: true}),
'github-token': core.getInput('github-token'),
nofallback: core.getBooleanInput('nofallback')
'github-token': core.getInput('github-token')
};
}

View file

@ -21,10 +21,10 @@ import {Metric_MetricType} from '@buf/blacksmith_vm-agent.bufbuild_es/stickydisk
async function assertBuildxAvailable(toolkit: Toolkit): Promise<void> {
if (!(await toolkit.buildx.isAvailable())) {
core.setFailed(`Docker buildx is required. Please use setup-docker-builder action or setup-buildx-action to configure buildx.`);
core.setFailed(`Docker buildx is required. Please use setup-docker-builder action to configure buildx.`);
throw new Error('Docker buildx is not available');
}
await core.group(`Buildx version`, async () => {
await toolkit.buildx.printVersion();
});
@ -145,7 +145,6 @@ actionsToolkit.run(
}
});
const args: string[] = await context.getArgs(inputs, toolkit);
args.push('--debug');
core.debug(`context.getArgs: ${JSON.stringify(args)}`);