nixbld: publish conda channel on WWW

This commit is contained in:
Sebastien Bourdeauducq 2019-07-18 00:20:05 +08:00
parent b6b0080649
commit f51d24ac2e
1 changed files with 15 additions and 2 deletions

View File

@ -149,6 +149,10 @@ ACTION=="add", SUBSYSTEM=="tty", \
job = artiq:full:artiq-manual-latexpdf job = artiq:full:artiq-manual-latexpdf
command = ln -sf $(jq -r '.outputs[0].path' < $HYDRA_JSON) ${hydraWwwOutputs}/artiq-manual-latexpdf-beta command = ln -sf $(jq -r '.outputs[0].path' < $HYDRA_JSON) ${hydraWwwOutputs}/artiq-manual-latexpdf-beta
</runcommand> </runcommand>
<runcommand>
job = artiq:full:conda-channel
command = ln -sf $(jq -r '.outputs[0].path' < $HYDRA_JSON) ${hydraWwwOutputs}/conda-channel
</runcommand>
''; '';
}; };
systemd.services.hydra-www-outputs-init = { systemd.services.hydra-www-outputs-init = {
@ -267,6 +271,15 @@ ACTION=="add", SUBSYSTEM=="tty", \
add_header last-modified ""; add_header last-modified "";
''; '';
}; };
locations."/artiq/conda" = {
alias = "${hydraWwwOutputs}/conda-channel";
extraConfig = ''
etag off;
if_modified_since off;
add_header last-modified "";
autoindex on;
'';
};
}; };
"www.m-labs.hk" = { "www.m-labs.hk" = {
addSSL = true; addSSL = true;