Skip to content

Commit

Permalink
[build] Adapt CircleCI / DroneCI for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Hassine committed Apr 2, 2020
1 parent d7dc277 commit 79f95ad
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
10 changes: 2 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,20 +186,14 @@ jobs:
workflows:
opencti:
jobs:
- build_platform:
filters:
branches:
only:
- master
- build_platform
- package_rolling:
requires:
- build_platform
filters:
branches:
only:
- master
tags:
only: /.*/
- deploy_demo:
requires:
- build_platform
Expand Down Expand Up @@ -233,4 +227,4 @@ workflows:
tags:
only: /[0-9]+(\.[0-9]+)+(\.[0-9]+)*/
branches:
ignore: /.*/
ignore: /.*/
14 changes: 13 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ steps:
- name: build-circleci
image: curlimages/curl
commands:
- curl -X POST https://circleci.com/api/v1.1/project/github/OpenCTI-Platform/opencti/build?circle-token=$CIRCLECI_TOKEN
- curl -X POST --data "branch=master" https://circleci.com/api/v1.1/project/github/OpenCTI-Platform/opencti/build?circle-token=$CIRCLECI_TOKEN
environment:
CIRCLECI_TOKEN:
from_secret: circleci_token
Expand All @@ -47,6 +47,18 @@ steps:
event:
exclude:
- pull_request
- tag

- name: build-circleci-release
image: curlimages/curl
commands:
- curl -X POST --data "tag=$DRONE_TAG" https://circleci.com/api/v1.1/project/github/OpenCTI-Platform/opencti/build?circle-token=$CIRCLECI_TOKEN
environment:
CIRCLECI_TOKEN:
from_secret: circleci_token
when:
event:
- tag

services:
- name: grakn
Expand Down

0 comments on commit 79f95ad

Please sign in to comment.