mirror of
https://github.com/kitabisa/docker-slim-action.git
synced 2025-04-14 18:56:05 +00:00
fix: TAR_BAD_ARCHIVE
, enabled gzip
when tar.x
Signed-off-by: Dwi Siswanto <git@dw1.io>
This commit is contained in:
parent
963e4b0b96
commit
31149f3261
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -128,7 +128,8 @@ function get_slim() {
|
||||
const tar = require('tar');
|
||||
yield tar.x({
|
||||
file: const_1.path.join(const_1.TMP_DIR, FILENAME),
|
||||
cwd: const_1.TMP_DIR
|
||||
cwd: const_1.TMP_DIR,
|
||||
gzip: true
|
||||
});
|
||||
}
|
||||
else {
|
||||
|
@ -129,7 +129,8 @@ async function get_slim() {
|
||||
const tar = require('tar');
|
||||
await tar.x({
|
||||
file: path.join(TMP_DIR, FILENAME),
|
||||
cwd: TMP_DIR
|
||||
cwd: TMP_DIR,
|
||||
gzip: true
|
||||
});
|
||||
} else {
|
||||
throw new Error('Unexpected file extension.');
|
||||
|
Loading…
x
Reference in New Issue
Block a user