feat: add deploy webhook endpoint (POST /api/v1/_deploy)
This commit is contained in:
15
deploy.sh
Normal file
15
deploy.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
echo "[deploy] pulling latest code..."
|
||||
git pull origin master
|
||||
|
||||
echo "[deploy] building..."
|
||||
go build -o tutor-api ./cmd/tutor-api
|
||||
|
||||
echo "[deploy] restarting service..."
|
||||
sudo systemctl restart tutor-api
|
||||
|
||||
echo "[deploy] done"
|
||||
Reference in New Issue
Block a user