Use on deploy script too
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Ethan Lane 2023-12-29 20:27:38 +00:00
parent bc494970a0
commit 70457ac850

View file

@ -15,15 +15,19 @@ steps:
- npm test
- name: deploy to prod
image: drillster/drone-rsync
secrets: ssh_key
settings:
hosts:
- "minisforum.local"
- 192.168.68.120
user: vylpes
key:
from_secret: ssh_key
source: .
target: ~/apps/card-drop/card-drop_prod
recursive: true
prescript:
- eval `ssh-agent -s`
- echo "$SSH_KEY" | tr -d '\r' | ssh-add -
script:
- cd ~/apps/card-drop/card-drop_prod
- docker compose --file docker-compose.prod.yml up -d
@ -62,6 +66,7 @@ steps:
target: ~/apps/card-drop/card-drop_stage
recursive: true
prescript:
- eval `ssh-agent -s`
- echo "$SSH_KEY" | tr -d '\r' | ssh-add -
script:
- cd ~/apps/card-drop/card-drop_stage