chore: rename go module path for remote go run
This commit is contained in:
+3
-6
@@ -408,7 +408,7 @@ tasks:
|
|||||||
echo "Uploaded $TARBALL and updated latest.json"
|
echo "Uploaded $TARBALL and updated latest.json"
|
||||||
|
|
||||||
deploy-bugreport:
|
deploy-bugreport:
|
||||||
desc: Build and deploy the Go bugreport server to the webserver
|
desc: Deploy the Go bugreport server by restarting the systemd service (it pulls latest code from Codeberg)
|
||||||
preconditions:
|
preconditions:
|
||||||
- sh: test -n "$SSH_USER"
|
- sh: test -n "$SSH_USER"
|
||||||
msg: "SSH_USER is not set"
|
msg: "SSH_USER is not set"
|
||||||
@@ -417,14 +417,11 @@ tasks:
|
|||||||
- sh: test -n "$SSH_KNOWN_HOSTS"
|
- sh: test -n "$SSH_KNOWN_HOSTS"
|
||||||
msg: "SSH_KNOWN_HOSTS is not set"
|
msg: "SSH_KNOWN_HOSTS is not set"
|
||||||
cmds:
|
cmds:
|
||||||
- cd server/bugreport && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ../../build/bugreport-server .
|
|
||||||
- |
|
- |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
printf '%s\n' "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts
|
printf '%s\n' "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts
|
||||||
ssh "$SSH_USER@$SSH_HOST" "mkdir -p bugreport/reports"
|
ssh "root@$SSH_HOST" "systemctl restart bugreport"
|
||||||
scp build/bugreport-server "$SSH_USER@$SSH_HOST:bugreport/bugreport-server"
|
echo "Restarted bugreport service on $SSH_HOST to pull latest code from Codeberg"
|
||||||
ssh "root@$SSH_HOST" "systemctl daemon-reload && systemctl restart bugreport"
|
|
||||||
echo "Uploaded bugreport-server to $SSH_HOST and restarted service"
|
|
||||||
|
|
||||||
build-windows-release:
|
build-windows-release:
|
||||||
desc: Build the Windows desktop app (release) — must run on a Windows machine with MSVC
|
desc: Build the Windows desktop app (release) — must run on a Windows machine with MSVC
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
module sharedinbox.de/bugreport
|
module codeberg.org/guettli/sharedinbox/server/bugreport
|
||||||
|
|
||||||
go 1.21
|
go 1.21
|
||||||
|
|||||||
Reference in New Issue
Block a user