mirror of
https://github.com/docker/build-push-action.git
synced 2025-04-20 18:26:46 +00:00
Remove GitHub Cache support for now (future release or buildkit cache provider?)
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
2962fe9789
commit
44d05b9191
9 changed files with 32 additions and 54196 deletions
14
src/main.ts
14
src/main.ts
|
@ -1,8 +1,6 @@
|
|||
import * as os from 'os';
|
||||
import * as buildx from './buildx';
|
||||
import {Inputs, getInputs, getArgs} from './context';
|
||||
import * as github from './github';
|
||||
import * as stateHelper from './state-helper';
|
||||
import * as core from '@actions/core';
|
||||
import * as exec from '@actions/exec';
|
||||
|
||||
|
@ -23,7 +21,6 @@ async function run(): Promise<void> {
|
|||
core.info(`📌 Using builder instance ${inputs.builder}`);
|
||||
await buildx.use(inputs.builder);
|
||||
}
|
||||
inputs = await github.restoreCache(inputs);
|
||||
|
||||
core.info(`🏃 Starting build...`);
|
||||
const args: string[] = await getArgs(inputs);
|
||||
|
@ -33,13 +30,4 @@ async function run(): Promise<void> {
|
|||
}
|
||||
}
|
||||
|
||||
async function post(): Promise<void> {
|
||||
const inputs: Inputs = await getInputs();
|
||||
await github.saveCache(inputs);
|
||||
}
|
||||
|
||||
if (!stateHelper.IsPost) {
|
||||
run();
|
||||
} else {
|
||||
post();
|
||||
}
|
||||
run();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue