Skip to content

Commit

Permalink
[frontend] Testing drone configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Kedae committed Mar 4, 2024
1 parent 90fd917 commit 2607906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ steps:
commands:
- apk add git
- export OPENCTI_BRANCH=$DRONE_SOURCE_BRANCH
- if [ "$DRONE_SOURCE_BRANCH" == "issue/"* ]; then export DISTANT_BRANCH=$(echo $DRONE_SOURCE_BRANCH | cut -d "/" -f 2); fi
- DISTANT_BRANCH=$(echo $DRONE_SOURCE_BRANCH | cut -d "/" -f 2)
- if [ "$(echo "$(git ls-remote --heads https://github.com/OpenCTI-Platform/client-python.git $DRONE_SOURCE_BRANCH)")" != '' ]; then CLIENT_PYTHON_BRANCH=$DRONE_SOURCE_BRANCH; else CLIENT_PYTHON_BRANCH=$([[ "$(echo "$(git ls-remote --heads https://github.com/OpenCTI-Platform/client-python.git opencti/$DISTANT_BRANCH)")" != '' ]] && echo opencti/$DISTANT_BRANCH || echo 'master'); fi
- if [ "$(echo "$(git ls-remote --heads https://github.com/OpenCTI-Platform/connectors.git $DRONE_SOURCE_BRANCH)")" != '' ]; then CONNECTOR_BRANCH=$DRONE_SOURCE_BRANCH; else CONNECTOR_BRANCH=$([[ "$(echo "$(git ls-remote --heads https://github.com/OpenCTI-Platform/connectors.git opencti/$DISTANT_BRANCH)")" != '' ]] && echo opencti/$DISTANT_BRANCH || echo 'master'); fi
- echo "DISTANT_BRANCH=$DISTANT_BRANCH" >> variables
Expand Down

0 comments on commit 2607906

Please sign in to comment.