|
|
|
@ -13,6 +13,8 @@ steps: |
|
|
|
- name: build |
|
|
|
commands: |
|
|
|
- cd frontend && npm ci && npm run build && cd .. |
|
|
|
- go env -w GO111MODULE=on |
|
|
|
- go env -w GOPROXY=https://goproxy.cn,direct |
|
|
|
- go build -ldflags="-s -w" -o person-home . |
|
|
|
|
|
|
|
- name: deploy |
|
|
|
@ -22,8 +24,6 @@ steps: |
|
|
|
JWT_SECRET: |
|
|
|
from_secret: jwt_secret |
|
|
|
commands: |
|
|
|
- go env -w GO111MODULE=on |
|
|
|
- go env -w GOPROXY=https://goproxy.cn,direct |
|
|
|
- mkdir -p /opt/person-home |
|
|
|
- sudo cp person-home /opt/person-home/person-home |
|
|
|
- sudo sh -c 'pkill -x person-home || true; nohup env ADMIN_PASSWORD=$ADMIN_PASSWORD JWT_SECRET=$JWT_SECRET /opt/person-home/person-home >> /tmp/person-home.log 2>&1 &' |
|
|
|
|