diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..bb4071b --- /dev/null +++ b/.drone.yml @@ -0,0 +1,15 @@ +--- +kind: pipeline +type: docker +name: default + +steps: + - name: Test + image: golang + commands: + - go test ./... + - name: Build + image: golang + commands: + - go build ./ + - ls -lah \ No newline at end of file diff --git a/main.go b/main.go index a1a1fbe..e41d1e9 100644 --- a/main.go +++ b/main.go @@ -16,7 +16,6 @@ var migrationFS embed.FS func main() { config := webpage.WebPageConfig{ - Commands: nil, Templates: webserver, Static: webserver, Migrations: migrationFS, diff --git a/pkg/webpage/webpage.go b/pkg/webpage/webpage.go index e4ff43d..972eaba 100644 --- a/pkg/webpage/webpage.go +++ b/pkg/webpage/webpage.go @@ -101,7 +101,7 @@ func runMigration() error { log.Debug().Msg("Start Migration") db, err := sql.Open("mysql", "root:test@tcp(localhost:3306)/test?multiStatements=true") if err != nil { - log.Fatal().Err(err).Msg("Cant conect to Database") + log.Fatal().Err(err).Msg("Cant connect to Database") } d, err := iofs.New(config.Migrations, "database/migrations")