Skip to content

Instantly share code, notes, and snippets.

@jdolitsky
Created July 21, 2022 05:00
Show Gist options
  • Save jdolitsky/35d0605be86d1b06af517f6681a492cf to your computer and use it in GitHub Desktop.
Save jdolitsky/35d0605be86d1b06af517f6681a492cf to your computer and use it in GitHub Desktop.
Secure Your Software Factory with melange and apko
docker run --rm -v "${PWD}":/work \
--entrypoint sh \
distroless.dev/melange -c \
'cd packages && for d in `find . -type d -mindepth 1`; do \
( \
cd $d && \
apk index -o APKINDEX.tar.gz *.apk && \
melange sign-index --signing-key=../../melange.rsa APKINDEX.tar.gz\
) \
done'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment