Skip to content

Commit 3f153ea

Browse files
committed
Pull request 2636: AGDNS-3914-increase-snapcraft-build-stability
Squashed commit of the following: commit 689c4bd Author: Maksim Kazantsev <m.kazantsev@adguard.com> Date: Fri Apr 17 15:33:43 2026 +0300 snap: imp download.sh commit 0dec7e3 Author: Maksim Kazantsev <m.kazantsev@adguard.com> Date: Fri Apr 17 15:16:03 2026 +0300 all: rm result file; commit 6884679 Author: Maksim Kazantsev <m.kazantsev@adguard.com> Date: Fri Apr 17 15:11:52 2026 +0300 snap: imp download.sh commit 1412a0b Author: Maksim Kazantsev <m.kazantsev@adguard.com> Date: Thu Apr 16 20:06:09 2026 +0300 snap: use query param; commit 40c199d Author: Maksim Kazantsev <m.kazantsev@adguard.com> Date: Thu Apr 16 19:53:53 2026 +0300 docker: set cache buster env; commit 8bbde22 Author: Maksim Kazantsev <m.kazantsev@adguard.com> Date: Thu Apr 16 19:51:41 2026 +0300 all: rm .tar.gz commit 827f51d Author: Maksim Kazantsev <m.kazantsev@adguard.com> Date: Thu Apr 16 19:49:52 2026 +0300 snap: fix script; commit ff439b7 Author: Maksim Kazantsev <m.kazantsev@adguard.com> Date: Thu Apr 16 19:46:49 2026 +0300 snap: add cache buster url param;
1 parent 30e770f commit 3f153ea

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

docker/snapcraft.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export VERBOSE='1'
4646

4747
env \
4848
CHANNEL="${CHANNEL}" \
49+
CACHE_BUSTER="${CACHE_BUSTER}" \
4950
sh ./scripts/snap/download.sh \
5051
;
5152

scripts/snap/download.sh

100644100755
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,17 @@ set -e -f -u
1111
channel="${CHANNEL:?please set CHANNEL}"
1212
readonly channel
1313

14+
cache_buster="${CACHE_BUSTER:-0}"
15+
readonly cache_buster
16+
1417
while read -r arch snap_arch; do
1518
release_url="https://static.adtidy.org/adguardhome/${channel}/AdGuardHome_linux_${arch}.tar.gz"
1619
output="./AdGuardHome_linux_${arch}.tar.gz"
1720

21+
if [ -n "$cache_buster" ]; then
22+
release_url="${release_url}?cache_buster=${cache_buster}"
23+
fi
24+
1825
curl -o "$output" -v "$release_url"
1926
tar -f "$output" -v -x -z
2027
cp ./AdGuardHome/AdGuardHome "./AdGuardHome_${snap_arch}"

0 commit comments

Comments
 (0)