Commit 0789c5ee authored by Bùi Bá Trường's avatar Bùi Bá Trường

truongbb - test ci

parent f29ca637
Pipeline #279 failed with stages
in 10 seconds
......@@ -40,16 +40,23 @@ build:
# - merge_requests
script:
# - ssh -o StrictHostKeyChecking=no root#@192.168.1.201 "ls" # test command
- "ls"
- "cd /root/GitlabRunner/repo/ && ls"
- ls
- cd /root/GitlabRunner/repo/ && ls
- rm -rf ./ci
- 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
- cd ./ci
- sh ./build.sh
- ls
- 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/ && 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"
# - ssh -o StrictHostKeyChecking=no root@192.168.1.201 "cd /root/GitlabRunner/repo/ci && sh ./build.sh"
- ssh -o StrictHostKeyChecking=no root@192.168.1.201 "ls" # test command
# - ssh -o StrictHostKeyChecking=no root@192.168.1.201 "ls" # test command
artifacts:
paths:
- public # The built files for Gitlab Pages to serve
......
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