commit 229540d1e4017ef5331dc6dc810a525bde62089e
parent e2773476d3be4cf1877d2a47b965fe4cfcade680
Author: Devan Carpenter <devan@taler.net>
Date: Tue, 26 Nov 2024 23:36:45 +0100
aptly: ensure published repo stays in sync
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/aptly/aptly-publish.sh b/aptly/aptly-publish.sh
@@ -3,12 +3,14 @@
set -exou pipefail
REPOROOT="${HOME}"/.aptly/public
+PUBLISHPATH="${HOME}"/public_nightly_repo
DATESTAMP=$(date -Iseconds)
aptly repo create -distribution=bookworm -component=main taler-ci-snapshots
aptly repo add taler-ci-snapshots /home/aptbuilder/incoming/bookworm-taler-ci || true
aptly snapshot create "taler-${DATESTAMP}" from repo taler-ci-snapshots
aptly -gpg-provider="gpg2" publish -architectures="amd64,arm64" switch bookworm "taler-${DATESTAMP}"
+rsync -avP --delete-before "${REPOROOT}"/ "${PUBLISHPATH}"/
# Publish a list of all packages in the repo
aptly repo show -with-packages taler-ci-snapshots > "${REPOROOT}"/packages.txt