aptly.sh: Pull passphrase for gpg-signing from file
This commit is contained in:
parent
0905f9030b
commit
8fe0047822
1 changed files with 2 additions and 2 deletions
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue