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