manybuilds

This commit is contained in:
2026-07-24 12:52:43 +02:00
parent b27c6d3a73
commit f3710e7b3c
3 changed files with 146 additions and 0 deletions
+121
View File
@@ -0,0 +1,121 @@
services:
- hostname: app1
override: true
type: ubuntu/golang@1
zeropsYaml:
zerops:
- setup: app1
build:
envVariables:
KOKOS: AHOJ-8
base: ubuntu/golang@1
buildCommands:
- echo $KOKOS
- echo $ZEROPS_BUILD_TOKEN
- sleep 15
cache: true
- hostname: app2
override: true
type: ubuntu/golang@1
zeropsYaml:
zerops:
- setup: app2
build:
envVariables:
KOKOS: AHOJ-8
base: ubuntu/golang@1
buildCommands:
- echo $KOKOS
- echo $ZEROPS_BUILD_TOKEN
- sleep 15
cache: true
- hostname: app3
override: true
type: ubuntu/golang@1
zeropsYaml:
zerops:
- setup: app3
build:
envVariables:
KOKOS: AHOJ-8
base: ubuntu/golang@1
buildCommands:
- echo $KOKOS
- echo $ZEROPS_BUILD_TOKEN
- sleep 15
cache: true
- hostname: app4
override: true
type: ubuntu/golang@1
zeropsYaml:
zerops:
- setup: app4
build:
envVariables:
KOKOS: AHOJ-8
base: ubuntu/golang@1
buildCommands:
- echo $KOKOS
- echo $ZEROPS_BUILD_TOKEN
- sleep 15
cache: true
- hostname: app5
override: true
type: ubuntu/golang@1
zeropsYaml:
zerops:
- setup: app5
build:
envVariables:
KOKOS: AHOJ-8
base: ubuntu/golang@1
buildCommands:
- echo $KOKOS
- echo $ZEROPS_BUILD_TOKEN
- sleep 15
cache: true
- hostname: app6
override: true
type: ubuntu/golang@1
zeropsYaml:
zerops:
- setup: app6
build:
envVariables:
KOKOS: AHOJ-8
base: ubuntu/golang@1
buildCommands:
- echo $KOKOS
- echo $ZEROPS_BUILD_TOKEN
- sleep 15
cache: true
- hostname: app7
override: true
type: ubuntu/golang@1
zeropsYaml:
zerops:
- setup: app7
build:
envVariables:
KOKOS: AHOJ-8
base: ubuntu/golang@1
buildCommands:
- echo $KOKOS
- echo $ZEROPS_BUILD_TOKEN
- sleep 15
cache: true
- hostname: app8
override: true
type: ubuntu/golang@1
zeropsYaml:
zerops:
- setup: app8
build:
envVariables:
KOKOS: AHOJ-8
base: ubuntu/golang@1
buildCommands:
- echo $KOKOS
- echo $ZEROPS_BUILD_TOKEN
- sleep 15
cache: true
+11
View File
@@ -0,0 +1,11 @@
package main
import "net/http"
func main() {
http.HandleFunc("/", func(writer http.ResponseWriter, request *http.Request) {
writer.WriteHeader(http.StatusOK)
_, _ = writer.Write([]byte("Hello World"))
})
_ = http.ListenAndServe(":8080", nil)
}
+14
View File
@@ -0,0 +1,14 @@
zerops:
- setup: app
build:
base: ubuntu/golang@1
deployFiles: main
buildCommands:
- go build main.go
cache: true
run:
base: ubuntu/golang@1
ports:
- port: 8080
httpSupport: true
start: ./main