Add source deployment to spin git in CircleCI (#185)
author윤정현/Common Platform Lab(SR)/Staff Engineer/삼성전자 <jh0506.yun@samsung.com>
Thu, 2 Apr 2020 01:46:19 +0000 (10:46 +0900)
committer안주원/Common Platform Lab(SR)/Principal Engineer/삼성전자 <juwon.ahn@samsung.com>
Thu, 2 Apr 2020 01:46:19 +0000 (10:46 +0900)
.circleci/config.yml

index 8e18e0bdc862a700dc767f35db5ddb1063acb012..26c7b6f4a2ddc676de26d22e070478ba127b31e6 100644 (file)
@@ -10,6 +10,20 @@ jobs:
       - run: curl -sL https://art.sec.samsung.net/artifactory/tools/CircleCI/scripts/set_proxy_setting.sh | sh
       - run: ./build.sh build
 
+  source-deployment:
+    docker:
+      - image: mcr.microsoft.com/dotnet/core/sdk:3.0
+    steps:
+      - checkout
+      - add_ssh_keys:
+         fingerprints:
+           - "c7:9c:e0:d3:5a:2a:4c:eb:e2:79:92:dc:87:74:b7:bd  "
+      - run:
+          command: |
+            mkdir -p ~/.ssh && echo "Host *" > ~/.ssh/config && echo " StrictHostKeyChecking no" >> ~/.ssh/config
+            git remote add spin ssh://jh0506.yun@165.213.149.170:29418/platform/core/csapi/xsf
+            git fetch spin
+            git push -f spin HEAD:tizen_wearable
 
   build-nightly:
     docker:
@@ -73,6 +87,14 @@ workflows:
     jobs:
       - build-test
 
+  deployment:
+    jobs:
+      - source-deployment:
+          filters:
+            branches:
+              only:
+                - master
+
   nightly:
     triggers:
       - schedule: