From 7031cf7c18b5c3bd979273fc0f7111dced6232dd Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Mon, 14 Mar 2022 14:33:47 +0100 Subject: [PATCH] streamline script downloading Signed-off-by: Sam Therapy --- .drone.yml | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/.drone.yml b/.drone.yml index 766696ca..4cb8c760 100644 --- a/.drone.yml +++ b/.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 \ No newline at end of file -- 2.43.0