Sam Therapy
3f6201aff2
All checks were successful
continuous-integration/drone/push Build is passing
41 lines
669 B
YAML
41 lines
669 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:18
|
|
commands:
|
|
- yarn
|
|
- yarn build
|
|
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
|