Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SmartDataLab
public
CI-CD components
Docker
Commits
e3a95408
Commit
e3a95408
authored
8 months ago
by
Pierre Smeyers
Browse files
Options
Downloads
Patches
Plain Diff
fix(Trivy): Trivy 0.53.0 added the clean subcommand for semantic cache management
parent
aa0b7a0c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/gitlab-ci-docker.yml
+1
-1
1 addition, 1 deletion
templates/gitlab-ci-docker.yml
with
1 addition
and
1 deletion
templates/gitlab-ci-docker.yml
+
1
−
1
View file @
e3a95408
...
...
@@ -930,7 +930,7 @@ docker-trivy:
TRIVY_CACHE_DIR
:
"
.trivycache/"
script
:
|
# cache cleanup is needed when scanning images with the same tags, it does not remove the database
trivy image --clear-cache
trivy
clean --scan-cache || trivy
image --clear-cache
export TRIVY_USERNAME=${DOCKER_REGISTRY_SNAPSHOT_USER:-${DOCKER_REGISTRY_USER:-$CI_REGISTRY_USER}}
export TRIVY_PASSWORD=${DOCKER_REGISTRY_SNAPSHOT_PASSWORD:-${DOCKER_REGISTRY_PASSWORD:-$CI_REGISTRY_PASSWORD}}
basename=$(echo "${DOCKER_SNAPSHOT_IMAGE}" | sed 's|[/:]|_|g')
...
...
This diff is collapsed.
Click to expand it.
Benguria Elguezabal, Gorka
@gorka.benguria
mentioned in commit
ed4f4561
·
8 months ago
mentioned in commit
ed4f4561
mentioned in commit ed4f4561a00a2fe1bbabc4ad3a24a3a65d7b60f0
Toggle commit list
PROJECT_GITLAB_CI
@project_10484_bot_d292dac228cb59f1ee82a06b5b812b96
mentioned in commit
7f39dcb4
·
8 months ago
mentioned in commit
7f39dcb4
mentioned in commit 7f39dcb401be9d582a21e74d192dd7e00de85148
Toggle commit list
Benguria Elguezabal, Gorka
@gorka.benguria
mentioned in commit
3b3ebdd1
·
7 months ago
mentioned in commit
3b3ebdd1
mentioned in commit 3b3ebdd1b9d25961de04c1b2de65a38e0ae03dec
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment