diff --git a/build/ci/.drone.yml b/build/ci/.drone.yml index f969e1c..ccbcfe6 100644 --- a/build/ci/.drone.yml +++ b/build/ci/.drone.yml @@ -71,14 +71,15 @@ steps: - rm -r build deploy - touch test - echo "user=crab password=.hbqufufhby dbname=butler host=localhost port=5432" >> test - - goose -allow-missing -dir ./migrations postgres "user=crab password=$${DB_PASS} dbname=butler host=localhost port=5432 sslmode=disable" up + - touch migrate.sh + - echo goose -allow-missing -dir ./migrations postgres "user=crab password=$${DB_PASS} dbname=butler host=localhost port=5432 sslmode=disable" up >> migrate.sh + - chmod +x migrate.sh + - ./migrate.sh +# - goose -allow-missing -dir ./migrations postgres "user=crab password=$${DB_PASS} dbname=butler host=localhost port=5432 sslmode=disable" up - docker-compose up -d --force-recreate # TODO: - # scp bin, Dockerfile, docker-compose - # create .env from secrets - # run migrations - # restart container + # run migrations trigger: event: