Skip to content

Commit

Permalink
[integration] Upload packages to artifactory
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelHassine committed Oct 22, 2023
1 parent bb9a2e0 commit ea94277
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,7 @@ jobs:
steps:
- attach_workspace:
at: ~/
- add_ssh_keys
- run: sudo apt-get update -qq && sudo apt install curl
- run: ssh-keyscan -H opencti.io >> ~/.ssh/known_hosts
- run: git config --global user.email "[email protected]" && git config --global user.name "OpenCTI CircleCI"
- run: git remote add opencti ssh://[email protected]:/~/git-OLOszi5F.git && git push --force opencti master
- run: mkdir release
- run: rm -Rf ./opencti-platform/opencti-graphql/.yarn/cache
- run: cp -a ./opencti-platform/opencti-graphql release/opencti
Expand All @@ -118,7 +114,7 @@ jobs:
command: tar -zcvf "opencti-$(date '+%Y%m%d').tar.gz" opencti
- run:
working_directory: ~/opencti/release
command: scp "opencti-$(date '+%Y%m%d').tar.gz" [email protected]:/dns/io/opencti/releases/
command: curl [email protected]:$JFROG_TOKEN -T opencti-$(date '+%Y%m%d').tar.gz "https://filigran.jfrog.io/artifactory/opencti/opencti-$(date '+%Y%m%d').tar.gz"
- slack/notify:
event: fail
template: basic_fail_1
Expand All @@ -135,8 +131,7 @@ jobs:
- attach_workspace:
at: ~/
- add_ssh_keys
- run: sudo apt-get update -qq && sudo apt install curl
- run: ssh-keyscan -H opencti.io >> ~/.ssh/known_hosts
- run: sudo apt-get update -qq && sudo apt install curl
- run: mkdir release
- run: rm -Rf ./opencti-platform/opencti-graphql/.yarn/cache
- run: cp -a ./opencti-platform/opencti-graphql release/opencti
Expand All @@ -148,7 +143,7 @@ jobs:
command: tar -zcvf "opencti-$(date '+%Y%m%d')_musl.tar.gz" opencti
- run:
working_directory: ~/opencti_musl/release
command: scp "opencti-$(date '+%Y%m%d')_musl.tar.gz" [email protected]:/dns/io/opencti/releases/
command: curl [email protected]:$JFROG_TOKEN -T opencti-$(date '+%Y%m%d').tar.gz "https://filigran.jfrog.io/artifactory/opencti/opencti-$(date '+%Y%m%d').tar.gz"
- slack/notify:
event: fail
template: basic_fail_1
Expand Down

0 comments on commit ea94277

Please sign in to comment.