Add batch for making signature

This commit is contained in:
Andrey Volkov 2018-10-18 23:06:16 +00:00
parent d1689ae911
commit 141e3b0b26
1 changed files with 2 additions and 0 deletions

View File

@ -66,10 +66,12 @@ set +e
aptly publish list -raw | awk '{print $2}' | grep "^${UBUNTU_RELEASE}$"
if [[ $? -eq 0 ]]; then
aptly publish switch \
-batch=true \
-passphrase="${GPG_PASSWORD}" \
${UBUNTU_RELEASE} ${UBUNTU_RELEASE}-merged-`date +%Y%m%d%H`
else
aptly publish snapshot \
-batch=true \
-passphrase="${GPG_PASSWORD}" \
-distribution=${UBUNTU_RELEASE} ${UBUNTU_RELEASE}-merged-`date +%Y%m%d%H`
fi