summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/list-nightly-builds.py6
-rw-r--r--site/get/index.md2
2 files changed, 5 insertions, 3 deletions
diff --git a/scripts/list-nightly-builds.py b/scripts/list-nightly-builds.py
index 6de4058..042fd29 100755
--- a/scripts/list-nightly-builds.py
+++ b/scripts/list-nightly-builds.py
@@ -21,7 +21,7 @@ bucket = os.getenv("SNAPSHOTS_BUCKET")
def make_link(s, f):
f = re.sub(r'\s+', '+', f)
- return "https://s3.amazonaws.com/{0}/{1}".format(bucket, f)
+ return "https://s3.amazonaws.com/{0}/rolling/{1}".format(bucket, f)
def compare(l, r):
try:
@@ -48,6 +48,7 @@ for f in data:
file_names = list(set(map(lambda s: re.sub(r'rolling/(.*?)', r'\1', s), files)))
file_names.sort(reverse=True, key=cmp_to_key(compare))
+file_names.remove('vyos-rolling-latest.iso')
builds = []
@@ -60,10 +61,11 @@ for name in file_names:
tmpl = jinja2.Template("""
<ul>
+ <li><a href="{{latest}}">Latest build (symbolic link)</a></li>
{% for b in builds %}
<li><a href="{{b.link}}">{{b.file}}</a></li>
{% endfor %}
</ul>
""")
-print(tmpl.render(builds=builds))
+print(tmpl.render(latest=make_link('rolling', 'vyos-rolling-latest.iso'), builds=builds))
diff --git a/site/get/index.md b/site/get/index.md
index 4e267a1..709e1fd 100644
--- a/site/get/index.md
+++ b/site/get/index.md
@@ -15,7 +15,7 @@ Nightly builds are for you if you...
* want to check whether a bug is fixed in the latest code
* made a patch and want to test it before making a pull request
-Get nightly builds from [downloads.vyos.io](https://downloads.vyos.io/?dir=rolling/current/).
+Go to the [nightly builds page](/get/nightly-builds).
## Monthly snapshots