summaryrefslogtreecommitdiff
path: root/aptly/aptly-publish.sh
blob: 07a986f100768fb3110ff7ad7a203fa0508c616a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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}"

# Publish a list of all packages in the repo
aptly repo show -with-packages taler-ci-snapshots > "${REPOROOT}"/packages.txt