Update main.go

This commit is contained in:
2025-11-24 09:26:32 +00:00
parent 66c1922bad
commit ebc784970e

14
main.go
View File

@@ -7,21 +7,9 @@ import (
)
func main() {
fmt.Println("Read env from gitea file")
fmt.Println("Read env from Gitea")
for _, v := range os.Environ() {
fmt.Println(v)
}
giteaEnvFile, ok := os.LookupEnv("GITEA_ENV")
if !ok {
log.Fatalln("Gitea env file not found")
}
raw, err := os.ReadFile(giteaEnvFile)
if err != nil {
log.Fatalln("Gitea env file read error:", err)
}
fmt.Println(string(raw))
}