1
0
mirror of https://github.com/cmur2/dyndnsd.git synced 2024-12-22 00:54:22 +01:00

ci: fix Trivy command after update

This commit is contained in:
cn 2022-02-17 10:06:51 +01:00
parent dbc61d72fb
commit 3f784ccaa1

View File

@ -47,7 +47,7 @@ namespace :docker do
task :scan do task :scan do
ver = trivy_version.gsub('v', '') ver = trivy_version.gsub('v', '')
sh "if [ ! -e ./trivy ]; then wget -q -O - https://github.com/aquasecurity/trivy/releases/download/v#{ver}/trivy_#{ver}_Linux-64bit.tar.gz | tar -xzf - trivy; fi" sh "if [ ! -e ./trivy ]; then wget -q -O - https://github.com/aquasecurity/trivy/releases/download/v#{ver}/trivy_#{ver}_Linux-64bit.tar.gz | tar -xzf - trivy; fi"
sh "./trivy #{ci_image}" sh "./trivy image #{ci_image}"
end end
desc 'End-to-end test the CI Docker image' desc 'End-to-end test the CI Docker image'