Skip to content

Commit

Permalink
Pull image first (#116)
Browse files Browse the repository at this point in the history
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max and crazy-max committed May 14, 2021
1 parent 0cdb8b7 commit bdb1e25
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/main.ts
Expand Up @@ -22,6 +22,10 @@ async function run() {
return;
}

core.startGroup(`Pulling chocolatey Docker image`);
await exec.exec('docker', ['pull', image]);
core.endGroup();

core.startGroup('Running choco');
fs.writeFileSync('/tmp/env.txt', child_process.execSync(`env`, {encoding: 'utf8'}).trim());
await exec.exec('docker', [
Expand Down

0 comments on commit bdb1e25

Please sign in to comment.