Add Deploy CI #1
1 changed files with 7 additions and 17 deletions
24
.drone.yml
24
.drone.yml
|
@ -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
|
Loading…
Reference in a new issue