Use prescript
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Ethan Lane 2023-12-29 20:24:10 +00:00
parent 1ee7bb8630
commit 736053fb8b

View file

@ -51,6 +51,7 @@ steps:
- npm test
- name: deploy to stage
image: drillster/drone-rsync
secrets: ssh_key
settings:
hosts:
- "minisforum.local"
@ -60,6 +61,8 @@ steps:
source: .
target: ~/apps/card-drop/card-drop_stage
recursive: true
prescript:
- echo "$SSH_KEY" | tr -d '\r' | ssh-add -
script:
- cd ~/apps/card-drop/card-drop_stage
- docker compose --file docker-compose.stage.yml up -d