mirror of
https://github.com/cwinfo/yggdrasil-network.github.io.git
synced 2025-02-28 23:21:34 +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:
|
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="buildArtifactLinks"></p>
|
||||||
|
<p id="buildArtifactLinksCtl"></p>
|
||||||
|
|
||||||
<!-- TODO sort these to a useful order of some kind -->
|
<!-- TODO sort these to a useful order of some kind -->
|
||||||
<script type="text/javascript">
|
<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 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)
|
json.then(function(res) {
|
||||||
.then(function(res) {
|
|
||||||
return res.json();
|
return res.json();
|
||||||
}).then(function (bins) {
|
}).then(function (bins) {
|
||||||
var links = document.createElement('p')
|
var links = document.createElement('p')
|
||||||
for (var idx in bins) {
|
for (var idx in bins) {
|
||||||
|
if (bin.path.includes("yggdrasilctl")) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
var bin = bins[idx]
|
var bin = bins[idx]
|
||||||
var link = document.createElement('a');
|
var link = document.createElement('a');
|
||||||
link.appendChild(document.createTextNode(bin.path));
|
link.appendChild(document.createTextNode(bin.path));
|
||||||
@ -34,4 +38,24 @@ fetch(url)
|
|||||||
document.getElementById("buildArtifactLinks").appendChild(links)
|
document.getElementById("buildArtifactLinks").appendChild(links)
|
||||||
})
|
})
|
||||||
.catch(err => { throw err });
|
.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>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user