summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2022-05-21 15:39:54 +0300
committerDaniil Baturin <daniil@baturin.org>2022-05-21 15:39:54 +0300
commit0b39afcc4e2cf26bbfb4b54e89b0b9a7932ed3e3 (patch)
tree9350160c02f03e8b2adcd8afc6ad3bfca710fae9 /scripts
parentee9f59130dcc01c0a364c5d7bb378a87a477ab66 (diff)
downloadcommunity.vyos.net-0b39afcc4e2cf26bbfb4b54e89b0b9a7932ed3e3.tar.gz
community.vyos.net-0b39afcc4e2cf26bbfb4b54e89b0b9a7932ed3e3.zip
Use a shorter s3-us.vyos.io URL for image downloads
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/list-nightly-builds.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/list-nightly-builds.py b/scripts/list-nightly-builds.py
index 078f8cc..3b4d10c 100755
--- a/scripts/list-nightly-builds.py
+++ b/scripts/list-nightly-builds.py
@@ -18,9 +18,9 @@ import jinja2
from functools import cmp_to_key
-def make_link(bucket, prefix, file):
+def make_link(prefix, file):
f = re.sub(r'\s+', '+', file)
- return "https://s3.amazonaws.com/{0}/{1}/{2}".format(bucket, prefix, file)
+ return "https://s3-us.vyos.io/{0}/{1}".format(prefix, file)
def compare(l, r):
try:
@@ -58,7 +58,7 @@ def render_image_list(bucket, prefix, files):
for name in file_names:
build = {}
build['file'] = name
- build['link'] = make_link(bucket, prefix, name)
+ build['link'] = make_link(prefix, name)
builds.append(build)