File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - ' **'
7+ delete :
78
89jobs :
910 build_and_push :
Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ class LayerCache {
2727 }
2828
2929 async store ( key : string ) {
30- await this . saveImageAsUnpacked ( )
3130 this . originalKeyToStore = key
32- // Todo: remove await
31+ await this . saveImageAsUnpacked ( )
3332 await this . separateAllLayerCaches ( )
33+ // Todo: remove await
3434 const storeRoot = await this . storeRoot ( )
3535 const storeLayers = this . storeLayers ( )
3636 await Promise . all ( [ storeRoot , storeLayers ] )
@@ -100,7 +100,8 @@ class LayerCache {
100100
101101 async restore ( key : string , restoreKeys ?: string [ ] ) {
102102 this . originalKeyToStore = key
103- const hasRestoredRootCache = await this . restoreRoot ( restoreKeys )
103+ const restoreKeysIncludedRootKey = [ key , ...( restoreKeys !== undefined ? restoreKeys : [ ] ) ]
104+ const hasRestoredRootCache = await this . restoreRoot ( restoreKeysIncludedRootKey )
104105 if ( ! hasRestoredRootCache ) {
105106 core . info ( `Root cache could not be found. aborting.` )
106107 return false
You can’t perform that action at this time.
0 commit comments