Merge pull request #298 from crazy-max/fix-docker-pull
Some checks failed
publish / publish (push) Has been cancelled
Some checks failed
publish / publish (push) Has been cancelled
docker: fix pull caching
This commit is contained in:
@@ -136,8 +136,8 @@ export class Docker {
|
|||||||
await Exec.getExecOutput(`docker`, ['pull', image], {
|
await Exec.getExecOutput(`docker`, ['pull', image], {
|
||||||
ignoreReturnCode: true
|
ignoreReturnCode: true
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
pulled = false;
|
|
||||||
if (res.stderr.length > 0 && res.exitCode != 0) {
|
if (res.stderr.length > 0 && res.exitCode != 0) {
|
||||||
|
pulled = false;
|
||||||
const err = res.stderr.match(/(.*)\s*$/)?.[0]?.trim() ?? 'unknown error';
|
const err = res.stderr.match(/(.*)\s*$/)?.[0]?.trim() ?? 'unknown error';
|
||||||
if (cacheFoundPath) {
|
if (cacheFoundPath) {
|
||||||
core.warning(`Failed to pull image, using one from cache: ${err}`);
|
core.warning(`Failed to pull image, using one from cache: ${err}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user