File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
2+ - name : Set lane suffix
3+ set_fact :
4+ updates_lane_suffix : " {{ '.dev' if (stereum.settings.updates.lane | default('stable')) == 'dev' else '' }}"
5+
26- name : Download update metadata
37 uri :
4- url : https://stereum.net/downloads/updates.json
8+ url : " https://stereum.net/downloads/updates{{ updates_lane_suffix }} .json"
59 method : GET
610 return_content : yes
711 status_code : 200
2630- name : Update services
2731 include_tasks : update-service.yml
2832 with_items : " {{ services_to_update }}"
29-
3033# EOF
Original file line number Diff line number Diff line change 55 state : absent
66 become : yes
77
8+ - name : Set lane suffix
9+ set_fact :
10+ updates_lane_suffix : " {{ '.dev' if (stereum.settings.updates.lane | default('stable')) == 'dev' else '' }}"
11+
812- name : Download update metadata
913 uri :
10- url : https://stereum.net/downloads/updates.json
14+ url : " https://stereum.net/downloads/updates{{ updates_lane_suffix }} .json"
1115 method : GET
1216 return_content : true
1317 status_code : 200
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ export class NodeConnection {
2929 this . nodeConnectionParams = nodeConnectionParams ;
3030 this . os = null ;
3131 this . osv = null ;
32+ this . settings = null ;
3233 this . nodeUpdates = new NodeUpdates ( this ) ;
3334 this . configManager = new ConfigManager ( this ) ;
3435 }
Original file line number Diff line number Diff line change @@ -37,7 +37,11 @@ export class NodeUpdates {
3737 * @returns {Object } - updates available for services
3838 */
3939 async checkUpdates ( ) {
40- let response = await axios . get ( "https://stereum.net/downloads/updates.json" ) ;
40+ if ( ! this . nodeConnection ?. settings ?. lane ) {
41+ await this . nodeConnection . findStereumSettings ( ) ;
42+ }
43+ const lane = this . nodeConnection ?. settings ?. lane || "stable" ;
44+ let response = await axios . get ( `https://stereum.net/downloads/updates${ lane == "dev" ? ".dev" : "" } .json` ) ;
4145 if ( global . branch === "main" ) response . data . stereum . push ( { name : "HEAD" , commit : "main" } ) ;
4246 return response . data ;
4347 }
You can’t perform that action at this time.
0 commit comments