Skip to content
Snippets Groups Projects

Support self-hosted instances, ARM processors

Merged Erick Hitter requested to merge add/arm-and-api into master
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
+ 3
3
@@ -235,7 +235,7 @@ func main() {
@@ -235,7 +235,7 @@ func main() {
}
}
func readEnv() EnvValues {
func readEnv() EnvValues {
var gitlabAPIBaseUrl, gitlabPAToken, configDir, redisURL, redisPassword string
var gitlabAPIBaseUrl, gitlabAPIToken, configDir, redisURL, redisPassword string
useSentinel := false
useSentinel := false
if envGitlabAPIBaseUrl := os.Getenv("GITLAB_API_BASE_URL"); envGitlabAPIBaseUrl == "https://gitlab.com/api/v4" {
if envGitlabAPIBaseUrl := os.Getenv("GITLAB_API_BASE_URL"); envGitlabAPIBaseUrl == "https://gitlab.com/api/v4" {
@@ -246,7 +246,7 @@ func readEnv() EnvValues {
@@ -246,7 +246,7 @@ func readEnv() EnvValues {
if envGitlabAPIToken := os.Getenv("GITLAB_API_TOKEN"); envGitlabAPIToken == "" {
if envGitlabAPIToken := os.Getenv("GITLAB_API_TOKEN"); envGitlabAPIToken == "" {
panic("Could not find GITLAB_API_TOKEN specified as an environment variable")
panic("Could not find GITLAB_API_TOKEN specified as an environment variable")
} else {
} else {
gitlabPAToken = envGitlabAPIToken
gitlabAPIToken = envGitlabAPIToken
}
}
if envConfigDir := os.Getenv("CONFIG_DIR"); envConfigDir == "" {
if envConfigDir := os.Getenv("CONFIG_DIR"); envConfigDir == "" {
panic("Could not find CONFIG_DIR specified as an environment variable")
panic("Could not find CONFIG_DIR specified as an environment variable")
@@ -276,7 +276,7 @@ func readEnv() EnvValues {
@@ -276,7 +276,7 @@ func readEnv() EnvValues {
RedisURL: redisURL,
RedisURL: redisURL,
RedisPassword: redisPassword,
RedisPassword: redisPassword,
ConfDir: configDir,
ConfDir: configDir,
GitlabAPIKey: gitlabPAToken,
GitlabAPIKey: gitlabAPIToken,
GitlabAPIBaseUrl: gitlabAPIBaseUrl,
GitlabAPIBaseUrl: gitlabAPIBaseUrl,
UseSentinel: useSentinel,
UseSentinel: useSentinel,
}
}
Loading