From efdae35d15f3efa3a06656a160c804a534f29a5c Mon Sep 17 00:00:00 2001 From: Bendik Aagaard Lynghaug Date: Sat, 7 Nov 2026 16:30:40 +0100 Subject: [PATCH] DNS workflow: dnscontrol in the runner user's cache Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01L5fbDmSQSb6u27EiEuwzoM --- .gitea/workflows/dns.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/dns.yml b/.gitea/workflows/dns.yml index d124ce8..68f2137 100644 --- a/.gitea/workflows/dns.yml +++ b/.gitea/workflows/dns.yml @@ -29,10 +29,11 @@ jobs: git clone --depth 1 --branch "${{ github.ref_name }}" "${{ github.server_url }}/${{ github.repository }}.git" checkout # The release binary, checked against the release's own checksums, - # kept beside the portal lint so each version is fetched once. + # kept in the runner user's cache so each version is fetched once. - name: dnscontrol run: | - bin="/var/local/cargo-target/dnscontrol-$DNSCONTROL_VERSION" + mkdir -p "$HOME/.cache/dnscontrol" + bin="$HOME/.cache/dnscontrol/dnscontrol-$DNSCONTROL_VERSION" if [ ! -x "$bin" ]; then tmp=$(mktemp -d) base="https://github.com/StackExchange/dnscontrol/releases/download/v$DNSCONTROL_VERSION"