1 Commits

Author SHA1 Message Date
tueem da6abf0cbe fix(ci): docker only on tags and build on all
docker / docker (push) Successful in 5m3s
build / Go-Build (push) Successful in 1m39s
2026-05-28 23:42:17 +02:00
3 changed files with 10 additions and 17 deletions
+4 -2
View File
@@ -3,8 +3,10 @@ name: build
on:
pull_request:
push:
branches-ignore:
- main
branches:
- '**'
tags:
- '**'
jobs:
Go-Build:
+2 -2
View File
@@ -2,8 +2,8 @@ name: docker
on:
push:
branches:
- 'main'
tags:
- '**'
jobs:
docker:
+4 -13
View File
@@ -104,18 +104,9 @@ func getPublicUrl(r *http.Request, subpath string) string {
Host: r.Host,
Path: path.Join("public", subpath),
}
newURL.Scheme = determineScheme(r)
newURL.Scheme = "http"
if r.TLS != nil {
newURL.Scheme = "https"
}
return newURL.String()
}
func determineScheme(r *http.Request) string {
if proto := r.Header.Get("X-Forwarded-Proto"); proto != "" {
return proto
}
if r.TLS != nil {
return "https"
}
return "http"
}