admin-fe/.drone.yml
Sam Therapy dd75eab9a2
Some checks failed
continuous-integration/drone/push Build is failing
api/v1 for chats & adding auto deploy :)
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-01-05 15:49:39 +01:00

42 lines
674 B
YAML

kind: pipeline
type: docker
name: Deploy
clone:
disable: true
steps:
- name: Clone
image: woodpeckerci/plugin-git
settings:
recursive: true
- name: Build
depends_on:
- Clone
image: node:16
commands:
- yarn
- yarn build:prod
when:
event:
- push
- name: Execute deploy script
depends_on:
- Build
image: ubuntu:latest
environment:
SSH_KEY:
from_secret: SSH_KEY
commands:
- apt update && apt install -y openssh-client rsync
- ./ci/add-key.sh
- ./ci/deploy.sh
when:
event:
- push
branch:
- froth
- froth-akkoma