Skip to content

Commit

Permalink
fix(ci/deb): do not remove old packages for EOL versions (#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
knqyf263 committed Oct 22, 2020
1 parent 793a1aa commit fe1d07e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/deploy-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ UBUNTU_RELEASES=$(ubuntu-distro-info --supported)

cd trivy-repo/deb

for release in $(reprepro ls trivy | awk -F "|" '{print $3}' | sed 's/ //g'); do
for release in ${DEBIAN_RELEASES[@]} ${UBUNTU_RELEASES[@]}; do
echo "Removing deb package of $release"
reprepro -A i386 remove $release trivy
reprepro -A amd64 remove $release trivy
Expand Down

0 comments on commit fe1d07e

Please sign in to comment.