Skip to content

Commit

Permalink
Docker: mount a consistent cache dir
Browse files Browse the repository at this point in the history
  • Loading branch information
georg-jung committed Jan 16, 2024
1 parent 222d13a commit 8823c6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions trivy-task/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ async function createRunner(docker: boolean, loginDockerConfig: boolean): Promis
runner.line("run --rm")
loginDockerConfig ? runner.line("-v " + task.getVariable("DOCKER_CONFIG") + ":/root/.docker") : runner.line("-v " + home + "/.docker:/root/.docker")
runner.line("-v /tmp:/tmp")
runner.line("-v /tmp/trivy-cache/:/root/.cache/")
runner.line("-v /var/run/docker.sock:/var/run/docker.sock")
runner.line("-v " + cwd + ":/src")
runner.line("--workdir /src")
Expand Down

0 comments on commit 8823c6f

Please sign in to comment.