Skip to content

Commit 4d8bd68

Browse files
committed
docker: fix pull caching
Signed-off-by: CrazyMax <[email protected]>
1 parent 43d331f commit 4d8bd68

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/docker/docker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ export class Docker {
136136
await Exec.getExecOutput(`docker`, ['pull', image], {
137137
ignoreReturnCode: true
138138
}).then(res => {
139-
pulled = false;
140139
if (res.stderr.length > 0 && res.exitCode != 0) {
140+
pulled = false;
141141
const err = res.stderr.match(/(.*)\s*$/)?.[0]?.trim() ?? 'unknown error';
142142
if (cacheFoundPath) {
143143
core.warning(`Failed to pull image, using one from cache: ${err}`);

0 commit comments

Comments
 (0)