diff --git a/manybuilds/import.yaml b/manybuilds/import.yaml new file mode 100644 index 0000000..3ce44b2 --- /dev/null +++ b/manybuilds/import.yaml @@ -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 diff --git a/manybuilds/main.go b/manybuilds/main.go new file mode 100644 index 0000000..5d5088e --- /dev/null +++ b/manybuilds/main.go @@ -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) +} diff --git a/manybuilds/zerops.yaml b/manybuilds/zerops.yaml new file mode 100644 index 0000000..fafe7d4 --- /dev/null +++ b/manybuilds/zerops.yaml @@ -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