aboutsummaryrefslogtreecommitdiff
path: root/aptly/aptly-publish.sh
blob: 2929f7a85e7328b7f2889be9cc31104e62173313 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

set -exou pipefail

REPOROOT="${HOME}"/.aptly/public
DATESTAMP=$(date -Iseconds)

rm -rf "${HOME}"/garbagecollect
mv "${REPOROOT}"/pool "${HOME}"/garbagecollect || true
aptly repo drop --force taler-ci-snapshots || true
aptly db cleanup
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}"