aptly-init.sh (808B)
1 #!/bin/bash 2 3 set -exou pipefail 4 5 REPOROOT="${HOME}"/.aptly/public 6 PUBLISHPATH="${HOME}"/public_nightly_repo 7 DATESTAMP=$(date -Iseconds) 8 SIGNING_KEY=79435E7226F4BD5332D657AC61BB851C184F44CF 9 mkdir -p "${HOME}"/incoming/trixie-taler-ci 10 aptly repo create -distribution=trixie -component=main taler-ci-snapshots 11 aptly repo add taler-ci-snapshots /home/aptbuilder/incoming/trixie-taler-ci || true 12 aptly snapshot create "taler-${DATESTAMP}" from repo taler-ci-snapshots 13 aptly -gpg-provider="gpg2" publish -architectures="amd64,arm64" -gpg-key="${SIGNING_KEY}" snapshot "taler-${DATESTAMP}" 14 aptly -gpg-provider="gpg2" publish -architectures="amd64,arm64" switch trixie "taler-${DATESTAMP}" 15 16 # Publish a list of all packages in the repo 17 aptly repo show -with-packages taler-ci-snapshots > "${REPOROOT}"/packages.txt