try create sh
continuous-integration/drone/push Build is passing Details

This commit is contained in:
user-penguin 2023-09-13 23:18:52 +07:00
parent 4fffffbba6
commit 18a0f021fd
1 changed files with 6 additions and 5 deletions

View File

@ -71,14 +71,15 @@ steps:
- rm -r build deploy - rm -r build deploy
- touch test - touch test
- echo "user=crab password=.hbqufufhby dbname=butler host=localhost port=5432" >> 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 - docker-compose up -d --force-recreate
# TODO: # TODO:
# scp bin, Dockerfile, docker-compose
# create .env from secrets
# run migrations # run migrations
# restart container
trigger: trigger:
event: event: