Skip to content

Commit

Permalink
Merge pull request #298 from crazy-max/fix-docker-pull
Browse files Browse the repository at this point in the history
docker: fix pull caching
  • Loading branch information
crazy-max committed Apr 12, 2024
2 parents 43d331f + 4d8bd68 commit a40fd94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docker/docker.ts
Expand Up @@ -136,8 +136,8 @@ export class Docker {
await Exec.getExecOutput(`docker`, ['pull', image], {
ignoreReturnCode: true
}).then(res => {
pulled = false;
if (res.stderr.length > 0 && res.exitCode != 0) {
pulled = false;
const err = res.stderr.match(/(.*)\s*$/)?.[0]?.trim() ?? 'unknown error';
if (cacheFoundPath) {
core.warning(`Failed to pull image, using one from cache: ${err}`);
Expand Down

0 comments on commit a40fd94

Please sign in to comment.