try create sh
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
4fffffbba6
commit
18a0f021fd
|
@ -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
|
||||
|
||||
trigger:
|
||||
event:
|
||||
|
|
Loading…
Reference in New Issue