Deb PPA: consistently specify publish prefix

This commit is contained in:
Roman Lebedev 2025-10-12 04:11:24 +03:00
parent 4050199158
commit bb6e5dead4
No known key found for this signature in database
GPG Key ID: 083C3EBB4A1689E0

View File

@ -289,6 +289,7 @@ jobs:
REPO_NAME="$DIST-${{ env.SUITE }}"
REPO_SUITE="bcachefs-tools-${{ env.SUITE }}"
SNAPSHOT_NAME="$REPO_NAME-$SNAPSHOT_DATE"
PUBLISH_PREFIX="filesystem:public:$DIST"
(aptly repo show $REPO_NAME > /dev/null 2>&1) || \
aptly repo create -distribution=$REPO_SUITE -component=main $REPO_NAME
aptly repo include -repo=$REPO_NAME -no-remove-files \
@ -296,9 +297,9 @@ jobs:
"${{ github.workspace }}/incoming/bin-artifacts/$DIST" \
;
aptly snapshot create $SNAPSHOT_NAME from repo $REPO_NAME
(aptly publish show $REPO_SUITE $DIST > /dev/null 2>&1) || \
aptly publish snapshot -acquire-by-hash -origin="apt.bcachefs.org" -label="apt.bcachefs.org Packages" $SNAPSHOT_NAME filesystem:public:$DIST
aptly publish switch $REPO_SUITE filesystem:public:$DIST $SNAPSHOT_NAME
(aptly publish show $REPO_SUITE $PUBLISH_PREFIX > /dev/null 2>&1) || \
aptly publish snapshot -acquire-by-hash -origin="apt.bcachefs.org" -label="apt.bcachefs.org Packages" $SNAPSHOT_NAME $PUBLISH_PREFIX
aptly publish switch $REPO_SUITE $PUBLISH_PREFIX $SNAPSHOT_NAME
echo '::endgroup::'
done
umount "$MOUNTPOINT" || /bin/true