This commit is contained in:
Daniil Gentili 2023-05-01 20:34:50 +02:00
parent f68e3d4098
commit 45ad55a648
Signed by: danog
GPG key ID: 8C1BE3B34B230CA7
3 changed files with 4 additions and 5 deletions

View file

@ -17,6 +17,7 @@ pipeline:
image: golang image: golang
commands: commands:
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
- go mod tidy
- golangci-lint run - golangci-lint run
- go build -o ecodash-x86 src/main/main.go - go build -o ecodash-x86 src/main/main.go
- env GOOS=linux GOARCH=arm go build -o ecodash-arm src/main/main.go - env GOOS=linux GOARCH=arm go build -o ecodash-arm src/main/main.go

View file

@ -11,8 +11,7 @@ import (
"time" "time"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
// Needed to use sqlite3 databases.
// Needed to use sqlite3 databases
_ "github.com/mattn/go-sqlite3" _ "github.com/mattn/go-sqlite3"
) )

View file

@ -6,12 +6,11 @@ import (
"os" "os"
"time" "time"
"git.massivebox.net/ecodash/ecodash/src/ecodash"
"git.massivebox.net/ecodash/ecodash/src/tools"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
"github.com/gofiber/template/html" "github.com/gofiber/template/html"
"github.com/robfig/cron/v3" "github.com/robfig/cron/v3"
"git.massivebox.net/ecodash/ecodash/src/ecodash"
"git.massivebox.net/ecodash/ecodash/src/tools"
) )
func main() { func main() {