From 18a0f021fd55e232970b9d5d722d2f0d596b4798 Mon Sep 17 00:00:00 2001 From: user-penguin Date: Wed, 13 Sep 2023 23:18:52 +0700 Subject: [PATCH] try create sh --- build/ci/.drone.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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: