We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 180c017 commit 0123722Copy full SHA for 0123722
codefresh/preview.yaml
@@ -55,7 +55,7 @@ steps:
55
type: build
56
description: "Build test image"
57
dockerfile: Dockerfile
58
- image_name: ${{CF_REPO_NAME}}
+ image_name: ${{CF_DOCKER_REPO_URL}}/${{CF_REPO_NAME}}
59
tag: ${{CF_SHORT_REVISION}}-test
60
when:
61
condition:
main.go
@@ -14,10 +14,16 @@ func main() {
14
if len(c) == 0 {
15
c = "cyan"
16
}
17
+
18
+ addr := os.Getenv("LISTEN")
19
+ if len(addr) == 0 {
20
+ addr = ":8080"
21
+ }
22
23
count := 0
24
25
m := http.NewServeMux()
- s := http.Server{Addr: ":8080", Handler: m}
26
+ s := http.Server{Addr: addr, Handler: m}
27
28
log.Printf("Server started\n")
29
0 commit comments