23 lines
660 B
YAML
23 lines
660 B
YAML
zerops:
|
|
- setup: test
|
|
build:
|
|
base: ubuntu/go@latest
|
|
buildCommands:
|
|
- go build -ldflags "-X main.BuildTime=$(date -u +%Y-%m-%dT%H:%M:%SZ)" -o app main.go
|
|
cache: true
|
|
deployFiles:
|
|
- app
|
|
run:
|
|
base: ubuntu@latest
|
|
ports:
|
|
- port: 8080
|
|
httpSupport: true
|
|
startCommands:
|
|
- name: webserver
|
|
command: /var/www/app
|
|
- name: mount
|
|
initCommands:
|
|
- sudo mkdir -p /mnt/vol
|
|
- sudo chown -R zerops:zerops /mnt/vol
|
|
command: sudo /opt/zerops/bin/weed-3-85 mount -filer node-stable-1.db.sharedstorage.zerops:8888 -dir /mnt/vol
|