Merge pull request 'Add Taskfile' (#16) from taskfile into main
Reviewed-on: https://codeberg.org/grisu48/weblug/pulls/16
This commit is contained in:
commit
c0c11bf7c7
|
@ -37,7 +37,12 @@ In it's current implementation, `weblug` requires to remain running as root with
|
|||
make # Build weblug
|
||||
make static # Make a static binary
|
||||
|
||||
Alternatively you there is also a [Taskfile](https://taskfile.dev)
|
||||
|
||||
task
|
||||
task static # Build static binary
|
||||
|
||||
## Run as systemd unit
|
||||
|
||||
This repository provides an example [weblug.service](weblug.service), which can be used to start `weblug` as systemd service.
|
||||
This file can be placed in `/etc/systemd/system/weblug.service` and in conjunction with an adequate `weblug.yml` file e.g. in `/etc/weblug.yml` this provides a way of running weblug as a native systemd service.
|
||||
This file can be placed in `/etc/systemd/system/weblug.service` and in conjunction with an adequate `weblug.yml` file e.g. in `/etc/weblug.yml` this provides a way of running weblug as a native systemd service.
|
||||
|
|
18
Taskfile.yml
Normal file
18
Taskfile.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
# https://taskfile.dev
|
||||
|
||||
version: '3'
|
||||
|
||||
vars:
|
||||
GREETING: Hello, World!
|
||||
|
||||
tasks:
|
||||
default:
|
||||
cmds:
|
||||
- go build -o weblug cmd/weblug/*.go
|
||||
# silent: true
|
||||
static:
|
||||
cmds:
|
||||
- CGO_ENABLED=0 go build -ldflags="-w -s" -o weblug cmd/weblug/*.go
|
||||
test:
|
||||
cmds:
|
||||
- sudo bash -c "cd test && ./blackbox.sh"
|
Loading…
Reference in a new issue