zenbook migration
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
zerops:
|
||||
- setup: app
|
||||
build:
|
||||
os: alpine
|
||||
base:
|
||||
- go@1
|
||||
buildCommands:
|
||||
- go build -o app main.go
|
||||
cache: true
|
||||
deployFiles:
|
||||
- app
|
||||
run:
|
||||
os: alpine
|
||||
base: alpine@latest
|
||||
ports:
|
||||
- port: 8080
|
||||
httpSupport: true
|
||||
start: ./app
|
||||
|
||||
- setup: static
|
||||
build:
|
||||
deployFiles:
|
||||
- index.html
|
||||
- static/
|
||||
run:
|
||||
os: alpine
|
||||
base: static@latest
|
||||
ports:
|
||||
- port: 80
|
||||
httpSupport: true
|
||||
|
||||
- setup: nginx
|
||||
build:
|
||||
deployFiles:
|
||||
- index.html
|
||||
- static/
|
||||
- nginx.conf
|
||||
addToRunPrepare:
|
||||
-
|
||||
run:
|
||||
os: alpine
|
||||
base: nginx@latest
|
||||
prepareCommands:
|
||||
- sudo apk update
|
||||
- sudo apk add vim
|
||||
ports:
|
||||
- port: 80
|
||||
httpSupport: true
|
||||
siteConfigPath: nginx.conf
|
||||
Reference in New Issue
Block a user