This commit is contained in:
parent
4a78d06f4e
commit
4f5226a2e5
3 changed files with 16 additions and 2 deletions
15
.drone.yml
Normal file
15
.drone.yml
Normal 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
|
1
main.go
1
main.go
|
@ -16,7 +16,6 @@ var migrationFS embed.FS
|
|||
|
||||
func main() {
|
||||
config := webpage.WebPageConfig{
|
||||
Commands: nil,
|
||||
Templates: webserver,
|
||||
Static: webserver,
|
||||
Migrations: migrationFS,
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue