add goose
This commit is contained in:
@@ -31,10 +31,14 @@ steps:
|
||||
- smm_core
|
||||
- docker-compose.yml
|
||||
- Dockerfile
|
||||
- migrations
|
||||
rm: true
|
||||
|
||||
- name: deploy
|
||||
image: appleboy/drone-ssh
|
||||
environment:
|
||||
DB_PASS:
|
||||
from_secret: db_pass
|
||||
settings:
|
||||
host:
|
||||
from_secret: server_ip
|
||||
@@ -47,6 +51,8 @@ steps:
|
||||
command_timeout: 50s
|
||||
script:
|
||||
- cd deploys/smm_core
|
||||
- export PATH=$PATH:/usr/local/go/bin:/$HOME/go/bin
|
||||
- goose -allow-missing -dir ./migrations postgres "user=crab password=$${DB_PASS} dbname=smm-core host=localhost port=5432 sslmode=disable" up
|
||||
- docker-compose up -d --build --force-recreate
|
||||
|
||||
trigger:
|
||||
|
||||
Reference in New Issue
Block a user