# Drone exec runner pipeline — runs directly on the target host. # Host must have Go 1.26+, Node 24+. kind: pipeline type: exec name: build-and-deploy platform: os: linux arch: amd64 steps: - name: build commands: - cd frontend && npm ci && npm run build && cd .. - go build -ldflags="-s -w" -o person-home . - name: deploy environment: ADMIN_PASSWORD: from_secret: admin_password JWT_SECRET: from_secret: jwt_secret commands: - 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 &' when: branch: main trigger: branch: - main