Skip to content

Commit

Permalink
Fix drone configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Aug 12, 2020
1 parent 6be318e commit c51265d
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ steps:
- name: run-tests
image: thehiveproject/drone-scala-node
commands:
- . ~/.nvm/nvm.sh
- sbt -Duser.home=$PWD test
- sbt -Duser.home=$PWD test:compile test

# Build packages
- name: build-packages
Expand Down Expand Up @@ -55,9 +54,11 @@ steps:
image: drillster/drone-volume-cache
settings:
rebuild: true
backend: "filesystem"
mount:
- .sbt
- .ivy2
- .cache
- ui/node_modules
- ui/bower_components
volumes: [{name: cache, path: /cache}]
Expand All @@ -66,9 +67,9 @@ steps:
- name: send packages
image: appleboy/drone-scp
settings:
host: {from_secret: scp_host}
username: {from_secret: scp_user}
key: {from_secret: scp_key}
host: {from_secret: package_host}
username: {from_secret: package_user}
key: {from_secret: package_key}
target: {from_secret: incoming_path}
source:
- target/thehive*.deb
Expand All @@ -82,9 +83,9 @@ steps:
- name: publish packages
image: appleboy/drone-ssh
settings:
host: {from_secret: scp_host}
user: {from_secret: scp_user}
key: {from_secret: scp_key}
host: {from_secret: package_host}
user: {from_secret: package_user}
key: {from_secret: package_key}
publish_script: {from_secret: publish_script}
commands:
- PLUGIN_SCRIPT="bash $PLUGIN_PUBLISH_SCRIPT thehive $(cat thehive-version.txt)" /bin/drone-ssh
Expand All @@ -109,7 +110,7 @@ steps:
settings:
context: target/docker/stage
dockerfile: target/docker/stage/Dockerfile
registry: {from_secret: harbor_server}
registry: {from_secret: harbor_registry}
repo: {from_secret: harbor_repo}
username: {from_secret: harbor_username}
password: {from_secret: harbor_password}
Expand Down

0 comments on commit c51265d

Please sign in to comment.