aptly.sh: Pull passphrase for gpg-signing from file
This commit is contained in:
4
aptly.sh
4
aptly.sh
@@ -41,12 +41,12 @@ if [ "$FIRST_RUN" = true ] ; then
|
|||||||
# https://www.aptly.info/doc/aptly/publish/snapshot/
|
# https://www.aptly.info/doc/aptly/publish/snapshot/
|
||||||
echo
|
echo
|
||||||
echo "aptly.sh: (first run) Setting up local publish with current snapshot"
|
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
|
else
|
||||||
# https://www.aptly.info/doc/aptly/publish/switch/
|
# https://www.aptly.info/doc/aptly/publish/switch/
|
||||||
echo
|
echo
|
||||||
echo "aptly.sh: (later runs) Switching local publish to current snapshot"
|
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
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
Reference in New Issue
Block a user