Commit 7db4c2c9 authored by Bùi Bá Trường's avatar Bùi Bá Trường

truongbb - demo push

parent c28764a5
Pipeline #498 passed with stages
in 1 minute and 19 seconds
...@@ -11,6 +11,9 @@ before_script: ...@@ -11,6 +11,9 @@ before_script:
- whoami - whoami
- unset SSH_ASKPASS - unset SSH_ASKPASS
variables:
repoPath: "/root/GitlabRunner/repo/reactjs-ci"
stages: stages:
- checkout - checkout
- build - build
...@@ -19,16 +22,9 @@ checkout: ...@@ -19,16 +22,9 @@ checkout:
stage: checkout stage: checkout
only: only:
- master - master
# - merge_requests - merge_requests
script: script:
# --------------CHECKOUT--------------- - cd "$repoPath"
# - cd /root/GitlabRunner/repo/ && ls
# - rm -rf ./reactjs-ci
# - git config --global user.name 'truongbb96'
# - git config --global user.email 'truongbb@itsol.vn'
# - git clone https://truongbb96:hoanghuynh0801@git.myitsol.com/truongbb96/reactjs-ci.git
# --------------PULL------------------
- cd /root/GitlabRunner/repo/reactjs-ci
- git stash - git stash
- git pull - git pull
...@@ -36,15 +32,10 @@ build: ...@@ -36,15 +32,10 @@ build:
stage: build stage: build
only: only:
- master - master
# - merge_requests - merge_requests
script: script:
- cd /root/GitlabRunner/repo/reactjs-ci - cd "$repoPath"
- sh ./build.sh - sh ./build.sh
# - ssh -o StrictHostKeyChecking=no root@192.168.1.201 "cd /root/GitlabRunner/repo/ && ls && rm -rf ./ci"
# - ssh -o StrictHostKeyChecking=no root@192.168.1.201 "cd /root/GitlabRunner/repo && unset SSH_ASKPASS && git config --global user.name 'truongbb96' && git config --global user.email 'truongbb@itsol.vn' && git clone https://truongbb96:hoanghuynh0801@git.myitsol.com/truongbb96/ci.git"
# - ssh -o StrictHostKeyChecking=no root@192.168.1.201 "cd /root/GitlabRunner/repo/ci && npm install && npm start"
# - ssh -o StrictHostKeyChecking=no root@192.168.1.201 "cd /root/GitlabRunner/repo/ci && docker-compose -p app -f docker-compose.yml down && echo '-------------' && docker-compose -p app -f docker-compose.yml build && echo '-------------' && docker-compose -p app -f docker-compose.yml up"
# - ssh -o StrictHostKeyChecking=no root@192.168.1.201 "cd /root/GitlabRunner/repo/ci && sh ./build.sh"
artifacts: artifacts:
paths: paths:
- public - public
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment