Browse Source

fix release url format

tags/v1.1.4
Jonathan Cobb 4 years ago
parent
commit
5a93f4d38d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      bubble-server/src/main/java/bubble/service/packer/PackerJob.java

+ 2
- 2
bubble-server/src/main/java/bubble/service/packer/PackerJob.java View File

@@ -313,13 +313,13 @@ public class PackerJob implements Callable<List<PackerImage>> {
final String version = packerService.getSoftwareVersion(roleName); final String version = packerService.getSoftwareVersion(roleName);
vars.put(roleName, version); vars.put(roleName, version);


final String hash = url2string(releaseUrlBase+"/"+version+"/"+roleName+".zip.sha256").trim();
final String hash = url2string(releaseUrlBase+"/"+roleName+"/"+version+"/"+roleName+".zip.sha256").trim();
String varsData = roleName+"_sha256 : '"+hash+"'\n" String varsData = roleName+"_sha256 : '"+hash+"'\n"
+ roleName+"_version : '" + version + "'\n"; + roleName+"_version : '" + version + "'\n";


if (roleName.equals(ROLE_ALGO)) { if (roleName.equals(ROLE_ALGO)) {
// capture dnscrypt_proxy version for algo // capture dnscrypt_proxy version for algo
final String dnscryptVersion = url2string(releaseUrlBase+"/"+version+"/dnscrypt-proxy_version.txt");
final String dnscryptVersion = url2string(releaseUrlBase+"/"+roleName+"/"+version+"/dnscrypt-proxy_version.txt");
varsData += "dnscrypt_version : '"+dnscryptVersion+"'"; varsData += "dnscrypt_version : '"+dnscryptVersion+"'";
vars.put(ROLE_DNSCRYPT, dnscryptVersion); vars.put(ROLE_DNSCRYPT, dnscryptVersion);
} }


Loading…
Cancel
Save