pleroma-fe/.drone.yml
Sam Therapy b51d511983
All checks were successful
continuous-integration/drone/push Build is passing
Add the froth changes back
This took forever and was really slow

Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-04-08 17:12:46 +02:00

37 lines
No EOL
859 B
YAML

kind: pipeline
type: docker
name: Deploy
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: Build
depends_on:
- submodules
image: node:12
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 wget dos2unix openssh-client rsync
- wget https://f.ruina.exposed/add-froth-key.sh && dos2unix ./add-froth-key.sh && chmod +x add-froth-key.sh && bash ./add-froth-key.sh
- wget https://f.ruina.exposed/pleroma-fe-build-froth.sh && dos2unix ./pleroma-fe-build-froth.sh && chmod +x pleroma-fe-build-froth.sh && bash ./pleroma-fe-build-froth.sh
when:
event:
- push
branch:
- froth