forked from massivebox/ecodash
Update
This commit is contained in:
parent
f68e3d4098
commit
45ad55a648
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue