mirror of
https://github.com/cwinfo/yggdrasil-network.github.io.git
synced 2024-11-09 00:30:26 +00:00
Update builds.md
This commit is contained in:
parent
a5bc9543c2
commit
f4f89f5d30
28
builds.md
28
builds.md
@ -12,17 +12,21 @@ If you prefer to live dangerously and want to test bleeding-edge features or cha
|
||||
For convenience, the [build artifacts](https://circleci.com/api/v1.1/project/github/yggdrasil-network/yggdrasil-go/latest/artifacts?branch=master&filter=successful) from the latest build are linked below:
|
||||
|
||||
<p id="buildArtifactLinks"></p>
|
||||
<p id="buildArtifactLinksCtl"></p>
|
||||
|
||||
<!-- TODO sort these to a useful order of some kind -->
|
||||
<script type="text/javascript">
|
||||
let url = 'https://circleci.com/api/v1.1/project/github/yggdrasil-network/yggdrasil-go/latest/artifacts?branch=master&filter=successful';
|
||||
let json = fetch(url)
|
||||
|
||||
fetch(url)
|
||||
.then(function(res) {
|
||||
json.then(function(res) {
|
||||
return res.json();
|
||||
}).then(function (bins) {
|
||||
var links = document.createElement('p')
|
||||
for (var idx in bins) {
|
||||
if (bin.path.includes("yggdrasilctl")) {
|
||||
continue
|
||||
}
|
||||
var bin = bins[idx]
|
||||
var link = document.createElement('a');
|
||||
link.appendChild(document.createTextNode(bin.path));
|
||||
@ -34,4 +38,24 @@ fetch(url)
|
||||
document.getElementById("buildArtifactLinks").appendChild(links)
|
||||
})
|
||||
.catch(err => { throw err });
|
||||
|
||||
json.then(function(res) {
|
||||
return res.json();
|
||||
}).then(function (bins) {
|
||||
var links = document.createElement('p')
|
||||
for (var idx in bins) {
|
||||
if (!bin.path.includes("yggdrasilctl")) {
|
||||
continue
|
||||
}
|
||||
var bin = bins[idx]
|
||||
var link = document.createElement('a');
|
||||
link.appendChild(document.createTextNode(bin.path));
|
||||
link.title = bin.path;
|
||||
link.href = bin.url;
|
||||
links.appendChild(link);
|
||||
links.appendChild(document.createElement('br'));
|
||||
}
|
||||
document.getElementById("buildArtifactLinksCtl").appendChild(links)
|
||||
})
|
||||
.catch(err => { throw err });
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user