diff --git a/build/ci/.drone.yml b/build/ci/.drone.yml index 0a7a1d6..7ea3e20 100644 --- a/build/ci/.drone.yml +++ b/build/ci/.drone.yml @@ -69,11 +69,8 @@ steps: - mv build/ci/Dockerfile . - mv deploy/docker-compose.yml . - rm -r build deploy - - touch migrate.sh - - echo \#!/bin/sh >> 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 - - sh migrate.sh + - export PATH=$PATH:/usr/local/go/bin:/$HOME/go/bin + - goose -allow-missing -dir ./migrations postgres \"user=crab password=$${DB_PASS} dbname=butler host=localhost port=5432 sslmode=disable\" up >> migrate.sh - docker-compose up -d --force-recreate trigger: