Deb PPA / aptly: hardlinks don't work through SSHFS

This commit is contained in:
Roman Lebedev 2025-10-08 04:03:13 +03:00
parent 6bcde1078b
commit 6b0201408c
No known key found for this signature in database
GPG Key ID: 083C3EBB4A1689E0

View File

@ -236,7 +236,7 @@ jobs:
run: | run: |
set -xe set -xe
SNAPSHOT_DATE=`date -u +%Y%m%d%H%M%S` SNAPSHOT_DATE=`date -u +%Y%m%d%H%M%S`
MOUNTPOINT="${{ github.workspace }}/remotefs" MOUNTPOINT="/home/aptbcachefsorg/uploads"
mkdir -p "$MOUNTPOINT" mkdir -p "$MOUNTPOINT"
if [ -n "${{ secrets.SSH_HOST }}" ]; then if [ -n "${{ secrets.SSH_HOST }}" ]; then
mkdir -p ~/.ssh mkdir -p ~/.ssh
@ -256,6 +256,10 @@ jobs:
tee -a ~/.aptly.conf <<EOT tee -a ~/.aptly.conf <<EOT
root_dir: $APTLY_ROOT root_dir: $APTLY_ROOT
gpg_disable_verify: false gpg_disable_verify: false
filesystem_publish_endpoints:
public:
root_dir: $APTLY_ROOT/public
link_method: symlink
EOT EOT
if [ "${{ steps.gpg.conclusion }}" = "skipped" ]; then if [ "${{ steps.gpg.conclusion }}" = "skipped" ]; then
tee -a ~/.aptly.conf <<EOT tee -a ~/.aptly.conf <<EOT
@ -287,8 +291,8 @@ jobs:
; ;
aptly snapshot create $SNAPSHOT_NAME from repo $REPO_NAME aptly snapshot create $SNAPSHOT_NAME from repo $REPO_NAME
(aptly publish show $REPO_SUITE $DIST > /dev/null 2>&1) || \ (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 $DIST 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 $DIST $SNAPSHOT_NAME aptly publish switch $REPO_SUITE filesystem:public:$DIST $SNAPSHOT_NAME
echo '::endgroup::' echo '::endgroup::'
done done
umount "$MOUNTPOINT" || /bin/true umount "$MOUNTPOINT" || /bin/true