Skip to content

Commit

Permalink
don't loop
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Hall <[email protected]>
  • Loading branch information
imjasonh committed Nov 6, 2023
1 parent 9caa30a commit ac1a0d2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/withdraw-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,8 @@ jobs:
- name: Withdraw from index
run: |
for arch in x86_64 aarch64; do
curl -o $arch/APKINDEX.tar.gz https://packages.wolfi.dev/os/$arch/APKINDEX.tar.gz
for pkg in $(grep -v '\#' withdrawn-packages.txt); do
pkg=${pkg%.apk}
cat APKINDEX.tar.gz | wolfictl withdraw ${pkg} --signing-key="${{ github.workspace }}/wolfi-signing.rsa" > APKINDEX.tar.gz.new
mv APKINDEX.tar.gz.new APKINDEX.tar.gz
done
curl -o APKINDEX.tar.gz.orig https://packages.wolfi.dev/os/$arch/APKINDEX.tar.gz
cat APKINDEX.tar.gz.orig | wolfictl withdraw $(grep -v '\#' withdrawn-packages.txt) --signing-key="${{ github.workspace }}/wolfi-signing.rsa" > $arch/APKINDEX.tar.gz
done
- name: Delete withdrawn packages
Expand Down

0 comments on commit ac1a0d2

Please sign in to comment.