1
0
Fork 0
mirror of https://github.com/docker/build-push-action.git synced 2025-05-08 14:39:31 +02: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:
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,26 +0,0 @@
import * as core from '@actions/core';
export const IsPost = !!process.env['STATE_isPost'];
export const cachePrimaryKey = process.env['STATE_cachePrimaryKey'] || '';
export const cacheMatchedKey = process.env['STATE_cacheMatchedKey'] || '';
export function setCachePrimaryKey(cachePrimaryKey: string) {
core.saveState('cachePrimaryKey', cachePrimaryKey);
}
export function setCacheMatchedKey(cacheMatchedKey: string) {
core.saveState('cacheMatchedKey', cacheMatchedKey);
}
export function isExactKeyMatch(key: string, cacheKey?: string): boolean {
return !!(
cacheKey &&
cacheKey.localeCompare(key, undefined, {
sensitivity: 'accent'
}) === 0
);
}
if (!IsPost) {
core.saveState('isPost', 'true');
}