Add Deploy CI #1

Merged
sam merged 1 commit from drone-ci into froth 2024-05-18 21:59:27 +00:00

View file

@ -12,27 +12,17 @@ steps:
event:
- push
- name: Download deploy script
depends_on:
- Build
image: plugins/download
settings:
source: https://f.ruina.exposed/pleroma-fe-build-froth1.sh
destination: ./build.sh
when:
event:
- push
- name: Execute deploy script
depends_on:
- Download deploy script
- Build
image: ubuntu:latest
environment:
SSH_KEY:
from_secret: SSH_KEY
commands:
- apt update && apt install -y wget
- wget https://f.ruina.exposed/add-froth-key.sh
- chmod +x add-froth-key.sh
- ./add-froth-key.sh && echo "KEY ADDED SUCCESFULLY"
- bash ./build.sh
- 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