aptly.sh: Fix broken switch commands - distro and config fix

This commit is contained in:
Scott Nonnenberg 2017-12-04 18:51:38 -08:00
parent 74d80fb1db
commit b366de7c63
No known key found for this signature in database
GPG Key ID: A4931C09644C654B
1 changed files with 5 additions and 4 deletions

View File

@ -45,7 +45,8 @@ aptly snapshot create $SNAPSHOT from repo $REPO
# these update already-published repos, run every time after that
# https://www.aptly.info/doc/aptly/publish/switch/
aptly publish switch -gpg-key=$GPG_KEYID -distribution=$CURRENT $SNAPSHOT
aptly publish switch -gpg-key=$GPG_KEYID -distribution=$PREVIOUS $SNAPSHOT
aptly publish switch -gpg-key=$GPG_KEYID -beta-config=.aptly.conf $CURRENT s3:$ENDPOINT: $SNAPSHOT
aptly publish switch -gpg-key=$GPG_KEYID -beta-config=.aptly.conf $PREVIOUS s3:$ENDPOINT: $SNAPSHOT
aptly publish switch -gpg-key=$GPG_KEYID $CURRENT $SNAPSHOT
aptly publish switch -gpg-key=$GPG_KEYID $PREVIOUS $SNAPSHOT
aptly publish switch -gpg-key=$GPG_KEYID -config=.aptly.conf $CURRENT s3:$ENDPOINT: $SNAPSHOT
aptly publish switch -gpg-key=$GPG_KEYID -config=.aptly.conf $PREVIOUS s3:$ENDPOINT: $SNAPSHOT