mirror of
https://github.com/r3bo0tbx1/tor-guard-relay.git
synced 2026-04-06 00:32:04 +02:00
♻️ refactor(ops): optimize workflows, docker setup and relay configs
Refactors the repository configuration to streamline CI/CD processes and tune Tor relay settings. **CI & Build:** - 👷 Enhance `cleanup.yml` with clearer cache deletion and logging. - 🐳 Update `.dockerignore` to streamline CI builds. - 🔧 Simplify `.gitattributes` and prune `.hadolint.yaml` comments. **Tor Configuration:** - 🛡️ Tune `relay-guard.conf` for performance and remove noise. - 🌉 Update `relay-bridge.conf` ORPort/ServerTransport settings. - ⚡ Refine `relay-exit.conf` exit policies and bandwidth limits. **Misc & Cleanup:** - 💄 Improve startup banner aesthetics in `docker-entrypoint.sh`. - 📝 Add JS execution warnings to `tor-exit-notice` HTML template. - 🔥 Remove obsolete `examples/.env` file.
This commit is contained in:
24
.github/workflows/cleanup.yml
vendored
24
.github/workflows/cleanup.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: 🗑️🧹
|
||||
name: 🗑️🧹 Force Clear Cache
|
||||
|
||||
on:
|
||||
schedule:
|
||||
@@ -12,24 +12,10 @@ jobs:
|
||||
clear-cache:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 🗑️ Clear GitHub Actions Cache
|
||||
- name: 💥 Nuke GitHub Actions Cache
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
REPO: ${{ github.repository }}
|
||||
run: |
|
||||
echo "🔍 Fetching list of caches..."
|
||||
# Get all cache keys
|
||||
cacheKeys=$(gh cache list --limit 100 --repo $REPO --json key --jq '.[].key')
|
||||
|
||||
if [ -z "$cacheKeys" ]; then
|
||||
echo "✅ No caches found to clear."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "🗑️ Deleting caches..."
|
||||
for key in $cacheKeys; do
|
||||
echo " - Deleting $key"
|
||||
gh cache delete "$key" --repo $REPO || echo " ⚠️ Failed to delete $key (might already be gone)"
|
||||
done
|
||||
echo "🎉 Cache cleanup complete."
|
||||
|
||||
echo "🔍 meaningful-text: check for caches..."
|
||||
gh cache delete --all --repo ${{ github.repository }} || true
|
||||
echo "✅ Cache storage is now empty."
|
||||
Reference in New Issue
Block a user