aptly.sh: Pull passphrase for gpg-signing from file

This commit is contained in:
Scott Nonnenberg 2023-05-15 17:45:30 -07:00 committed by GitHub
parent 0905f9030b
commit 8fe0047822
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,12 +41,12 @@ if [ "$FIRST_RUN" = true ] ; then
# https://www.aptly.info/doc/aptly/publish/snapshot/
echo
echo "aptly.sh: (first run) Setting up local publish with current snapshot"
aptly publish snapshot -gpg-key="$GPG_KEYID" -distribution="$CURRENT" "$SNAPSHOT"
aptly publish snapshot -passphrase-file=gpg-passphrase.txt -batch=true -gpg-key="$GPG_KEYID" -distribution="$CURRENT" "$SNAPSHOT"
else
# https://www.aptly.info/doc/aptly/publish/switch/
echo
echo "aptly.sh: (later runs) Switching local publish to current snapshot"
aptly publish switch -gpg-key="$GPG_KEYID" "$CURRENT" "$SNAPSHOT"
aptly publish switch -passphrase-file=gpg-passphrase.txt -batch=true -gpg-key="$GPG_KEYID" "$CURRENT" "$SNAPSHOT"
fi
echo