Skip to content

Commit

Permalink
#156 Deploy binaries in integration and staging environments
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Dec 13, 2018
1 parent 3d0f5f9 commit d65f379
Showing 1 changed file with 32 additions and 3 deletions.
35 changes: 32 additions & 3 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,15 @@ steps:
settings:
context: target/docker/stage
dockerfile: target/docker/stage/Dockerfile
repo: tooom/cortex
repo: thehiveproject/cortex
auto_tag: true
username: {from_secret: docker_username}
password: {from_secret: docker_password}
when:
event: [tag]

- name: copy binaries
# Deploy binaries in integration environment
- name: copy binaries in integration environment
image: appleboy/drone-scp
settings:
host: {from_secret: deploy_beta_host}
Expand All @@ -147,15 +148,43 @@ steps:
target: ./cortex-builds/${DRONE_BUILD_NUMBER}
source: target/universal/stage
strip_components: 3
when:
branch: [develop]

- name: deploy binaries
- name: deploy binaries in integration environment
image: appleboy/drone-ssh
settings:
host: {from_secret: deploy_beta_host}
username: {from_secret: deploy_username}
key: {from_secret: deploy_key}
script:
- ./start cortex ${DRONE_BUILD_NUMBER}
when:
branch: [develop]

# Deploy binaries in staging environment
- name: copy binaries in staging environment
image: appleboy/drone-scp
settings:
host: {from_secret: deploy_stable_host}
username: {from_secret: deploy_username}
key: {from_secret: deploy_key}
target: ./cortex-builds/${DRONE_BUILD_NUMBER}
source: target/universal/stage
strip_components: 3
when:
branch: [master]

- name: deploy binaries in staging environment
image: appleboy/drone-ssh
settings:
host: {from_secret: deploy_stable_host}
username: {from_secret: deploy_username}
key: {from_secret: deploy_key}
script:
- ./start cortex ${DRONE_BUILD_NUMBER}
when:
branch: [master]

volumes:
- name: cache
Expand Down

0 comments on commit d65f379

Please sign in to comment.