tangled
alpha
login
or
join now
stream.place
/
streamplace
74
fork
atom
Live video on the AT Protocol
74
fork
atom
overview
issues
1
pulls
pipelines
remove panic (it doesn't always matter)
Eli Mallon
2 years ago
44a0d8ad
945dfeb4
-4
1 changed file
expand all
collapse all
unified
split
pkg
config
git
git.go
-4
pkg/config/git/git.go
···
34
34
func gitlabURL() string {
35
35
CI_API_V4_URL := os.Getenv("CI_API_V4_URL")
36
36
CI_PROJECT_ID := os.Getenv("CI_PROJECT_ID")
37
37
-
if CI_API_V4_URL == "" || CI_PROJECT_ID == "" {
38
38
-
panic("missing CI_PROJECT_ID or CI_API_V4_URL")
39
39
-
}
40
37
return fmt.Sprintf("%s/projects/%s", CI_API_V4_URL, CI_PROJECT_ID)
41
38
}
42
39
···
112
109
outMap["AQUAREUM_BRANCH"] = AQUAREUM_BRANCH
113
110
outMap["AQUAREUM_VERSION"] = desc
114
111
outMap["AQUAREUM_BRANCH"] = AQUAREUM_BRANCH
115
115
-
// https://git.aquareum.tv/api/v4/projects/1/packages/generic/$(BRANCH)/aquareum-v0.0.9-8650d0fa-linux-arm64.tar.gz
116
112
for _, arch := range []string{"amd64", "arm64"} {
117
113
k := fmt.Sprintf("AQUAREUM_URL_%s", strings.ToUpper(arch))
118
114
v := fmt.Sprintf("%s/packages/generic/%s/%s/aquareum-%s-linux-%s.tar.gz", gitlabURL(), AQUAREUM_BRANCH, desc, desc, arch)