Pipeline
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kekskurse 2021-11-09 12:30:28 +01:00
parent 4a78d06f4e
commit 4f5226a2e5
Signed by: kekskurse
GPG key ID: 728ACCB59341E7E4
3 changed files with 16 additions and 2 deletions

15
.drone.yml Normal file
View file

@ -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

View file

@ -16,7 +16,6 @@ var migrationFS embed.FS
func main() { func main() {
config := webpage.WebPageConfig{ config := webpage.WebPageConfig{
Commands: nil,
Templates: webserver, Templates: webserver,
Static: webserver, Static: webserver,
Migrations: migrationFS, Migrations: migrationFS,

View file

@ -101,7 +101,7 @@ func runMigration() error {
log.Debug().Msg("Start Migration") log.Debug().Msg("Start Migration")
db, err := sql.Open("mysql", "root:test@tcp(localhost:3306)/test?multiStatements=true") db, err := sql.Open("mysql", "root:test@tcp(localhost:3306)/test?multiStatements=true")
if err != nil { 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") d, err := iofs.New(config.Migrations, "database/migrations")