forked from sonic-net/SONiC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sonic_latest_images.html
124 lines (112 loc) · 4.24 KB
/
sonic_latest_images.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SONiC installation images</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<!-- INCLUDING JQUERY-->
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<!-- CSS FOR STYLING THE PAGE -->
<style>
.list-group {
width: auto;
max-width: 1200px;
margin: 4rem auto;
margin-top:0;
margin-bottom:0;
}
table,
th,
td{
width: 1200px;
text-align: center;
border: 2px solid grey;
}
th,td{
padding: 10px;
background-color: none;
}
</style>
</head>
<body>
<div class="text-center">
<img class="d-block mx-auto mb-4" src="https://azure.github.io/SONiC/pdf/newsletters/newsletter_images/sonic-logo_40percentage.png" alt="SONiC logo">
</div>
<div class="list-group" id="builds">
<table style="width:1200px" border="2" align="center" id="disp_table" >
<tr>
<section id="mu-page-breadcrumb">
<div class="container">
<div class="row">
<div style="text-align: center;">
<div>
<div class="col-md-12">
<h2> Latest Successful Builds </h2><br>
<p style="padding-left: 0.5em; padding-bottom: 0.5em; vertical-align: center; line-height: 1.5m font-weight: bold; "><strong>NOTE:</strong> This page is updated manually once in a while and hence may not be pointing to the latest MASTER image. The current links are based on 16thOct2021 successful builds. To get the latest master image, refer <span style="color: #0000ff;"><a href="https://sonic-build.azurewebsites.net/ui/sonic/Pipelines">pipelines</a></span> page.
</div>
</div>
</div>
</div>
</div>
</section>
</tr>
<tr id="branch">
<td style="width: 20%; text-align: center; padding-left: 0.5em; background-color: lightgrey; height: 45px; align: center;">
<span style="letter-spacing: 0.15em; font-weight: bold; font-size: calc(11px + 0.6vw); ">Platform</span></td>
</tr>
</table>
</div>
<div class="px-4 text-center">
<div class="col-lg-6 mx-auto">
<p class="lead mt-4">
</p>
<p class="mt-4">
<a href="https://sonic-build.azurewebsites.net/ui/sonic/Pipelines">click here</a></span></td> for previous builds <br>
</p>
</p>
</div>
</div>
</div>
<script>
$(document).ready(function () {
$.getJSON("https://raw.githubusercontent.com/Azure/SONiC/sonic_latest_images_links/sonic_image_links.json",
function(data) {
dbs = data;
branches = Object.keys(data);
image_data = [];
for (let i = branches.length - 1 ; i >= 0; i--) {
display_data = "<td style=\" text-align: center; padding-left: 0.5em; background-color: lightgrey; height: 45px; align: center;\"><span style=\"letter-spacing: 0.15em; font-weight: bold; font-size: calc(11px + 0.6vw); \">" + branches[i].toUpperCase() +"</span></td>";
$("#branch").append(display_data);
images = Object.keys(data[branches[i]]);
for (let j = 0; j < images.length; j++) {
image_name = images[j];
image = data[branches[i]][images[j]];
image_platform = image_name.split(".")[0];
if(image_platform.length == 1){
platform = ""
}else{
platform = image_platform.split("sonic-")[1];
if(platform.length == 1){
platform = ""
}
}
image_avail = true;
image_url = image['url'];
if(image_url === 'null' || image_url === ""){
image_avail = false;
}
if ( !$("#"+platform).length ){
platform_column = "<tr id=\""+ platform +"\"><td style=\" text-align: center; \"><strong>"+ platform.toUpperCase()+"</strong></td></tr>";
$("#disp_table").append(platform_column);
}
if (image_avail)
image_column ="<td style=\"text-align: center;\"><span style=\"color: #0000ff;\"><a href=\""+ image_url +"\">"+image_name+"</a></span></td>";
else
image_column ="<td style=\"text-align: center;\"><span style=\"color: #0000ff;\">N/A</span></td>";
$("#"+platform).append(image_column);
}
}
});
});
</script>
</body>
</html>