diff --git a/.circleci/config.yml b/.circleci/config.yml index f2d7df0c578b..f30b8347ee27 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -186,11 +186,7 @@ jobs: workflows: opencti: jobs: - - build_platform: - filters: - branches: - only: - - master + - build_platform - package_rolling: requires: - build_platform @@ -198,8 +194,6 @@ workflows: branches: only: - master - tags: - only: /.*/ - deploy_demo: requires: - build_platform @@ -233,4 +227,4 @@ workflows: tags: only: /[0-9]+(\.[0-9]+)+(\.[0-9]+)*/ branches: - ignore: /.*/ + ignore: /.*/ \ No newline at end of file diff --git a/.drone.yml b/.drone.yml index 907f28ca5a92..e4b7fa488b31 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 @@ -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