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:
parent
2962fe9789
commit
44d05b9191
9 changed files with 32 additions and 54196 deletions
|
@ -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');
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue