Skip to content

Commit dbf44aa

Browse files
authored
Update container-ci.yaml
Signed-off-by: Jitendra Patil <jitendra.patil@intel.com>
1 parent c03a6cb commit dbf44aa

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

.github/workflows/container-ci.yaml

+5-14
Original file line numberDiff line numberDiff line change
@@ -125,20 +125,11 @@ jobs:
125125
run: echo "DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
126126
- name: Set up Trivy cache directory
127127
run: echo "TRIVY_CACHE_DIR=$GITHUB_WORKSPACE/trivy-cache" >> $GITHUB_ENV
128-
- name: Restore Trivy cache
129-
id: cache-trivy-db
130-
uses: actions/cache@v4.1.2
131-
with:
132-
path: ${{ github.workspace }}/trivy-cache
133-
key: ${{ runner.os }}-trivy-db-${{ env.DATE }}
134-
restore-keys: |
135-
${{ runner.os }}-trivy-db-
136-
- name: Download Trivy database if not cached
137-
if: steps.cache-trivy-db.outputs.cache-hit != 'true'
138-
run: |
139-
trivy --download-db-only
140-
mkdir -p $GITHUB_WORKSPACE/trivy-cache
141-
mv ~/.cache/trivy/db $GITHUB_WORKSPACE/trivy-cache
128+
- name: Download Trivy database
129+
run: |
130+
trivy --download-db-only
131+
mkdir -p $GITHUB_WORKSPACE/trivy-cache
132+
mv ~/.cache/trivy/db $GITHUB_WORKSPACE/trivy-cache
142133
- name: Save Trivy cache
143134
uses: actions/cache@v4.1.2
144135
with:

0 commit comments

Comments
 (0)