manybuilds
This commit is contained in:
@@ -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
|
||||||
@@ -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)
|
||||||
|
}
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user