streamline script downloading
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2022-03-14 14:33:47 +01:00
parent 2cd7dcf717
commit 7031cf7c18
Signed by: sam
GPG Key ID: 4D8B07C18F31ACBD
1 changed files with 7 additions and 17 deletions

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