diff --git a/build/ci/.drone.yml b/build/ci/.drone.yml index 04bbebd..26a69b9 100644 --- a/build/ci/.drone.yml +++ b/build/ci/.drone.yml @@ -69,7 +69,10 @@ steps: - mv build/ci/Dockerfile . - mv deploy/docker-compose.yml . - rm -r build deploy - - 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 - docker-compose up -d --force-recreate trigger: