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:
CrazyMax 2020-08-17 18:35:15 +02:00
parent 2962fe9789
commit 44d05b9191
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
9 changed files with 32 additions and 54196 deletions

View file

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