From 25afe88cd5b37d75aa733f8f94e8bd2bd2e4bdee Mon Sep 17 00:00:00 2001 From: Override-6 Date: Sat, 21 Jan 2023 16:21:18 +0100 Subject: [PATCH] updating drone --- drone/.drone.yml | 28 ++++++++++++++++++---------- drone/deliver.sh | 4 ++-- 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/drone/.drone.yml b/drone/.drone.yml index 617218e..5a474cf 100644 --- a/drone/.drone.yml +++ b/drone/.drone.yml @@ -1,10 +1,9 @@ kind: pipeline type: docker -name: Deliver -mode: parallel +name: Android steps: - - name: Android + - name: Deliver image: override6/tbasket-frontend:latest workspace: path: /src/android @@ -17,7 +16,14 @@ steps: - bash drone/deliver.sh android - bash drone/android-sign.sh - - name: Electron +--- + +kind: pipeline +type: docker +name: Electron + +steps: + - name: Deliver image: override6/tbasket-frontend:latest workspace: path: /src/electron @@ -29,7 +35,14 @@ steps: commands: - bash drone/deliver.sh electron - - name: Web +--- + +kind: pipeline +type: docker +name: Apache + +steps: + - name: Deliver image: override6/tbasket-frontend:latest workspace: path: /src/web @@ -40,8 +53,3 @@ steps: from_secret: SSH_PUBLIC commands: - bash drone/deliver.sh browser - - - name: dummy - image: ubuntu:latest - depends_on: - - "Web" \ No newline at end of file diff --git a/drone/deliver.sh b/drone/deliver.sh index 7c2af50..097eea0 100755 --- a/drone/deliver.sh +++ b/drone/deliver.sh @@ -47,8 +47,8 @@ esac #install cordova -cordova platform add "$TYPE" -cordova build "$TYPE" $OPTIONS +cordova platform add "$TYPE" || exit 1 +cordova build "$TYPE" $OPTIONS || exit 1 echo "delivering outputs on server"