File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Validate fallback IP pin behavior
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ test :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - name : Install rclone
11+ run : curl -fsSL https://rclone.org/install.sh | sudo bash
12+
13+ - name : " Replicate failing scenario: pin hardcoded IP + raw endpoint"
14+ env :
15+ ENDPOINT : ${{ secrets.HOMEPAGE_BUNNY_S3_ENDPOINT }}
16+ ACCESS : ${{ secrets.HOMEPAGE_BUNNY_S3_ACCESS_KEY }}
17+ SECRET : ${{ secrets.HOMEPAGE_BUNNY_S3_SECRET_KEY }}
18+ BUCKET : ${{ secrets.HOMEPAGE_BUNNY_S3_BUCKET }}
19+ run : |
20+ HOST=$(echo "$ENDPOINT" | sed -E 's#^https?://##; s#[/:].*##')
21+ echo "$HOST" | sed 's/^/host: /'
22+ echo "109.61.89.53 $HOST" | sudo tee -a /etc/hosts >/dev/null
23+ cat /etc/hosts | tail -3
24+ mkdir -p ~/.config/rclone
25+ cat > ~/.config/rclone/rclone.conf <<EOF
26+ [bunny]
27+ type = s3
28+ provider = Other
29+ env_auth = false
30+ access_key_id = ${ACCESS}
31+ secret_access_key = ${SECRET}
32+ endpoint = ${ENDPOINT}
33+ force_path_style = true
34+ acl = private
35+ EOF
36+ echo "=== lsd with pinned 109.61.89.53 ==="
37+ timeout 60 rclone lsd "bunny:${BUCKET}" --fast-list --verbose 2>&1 | tail -20
38+ echo "EXIT: $?"
You can’t perform that action at this time.
0 commit comments