https://github.com/zhuima/kylin
Ansible CI/CD
https://github.com/zhuima/kylin
Last synced: 5 months ago
JSON representation
Ansible CI/CD
- Host: GitHub
- URL: https://github.com/zhuima/kylin
- Owner: zhuima
- Created: 2020-06-03T13:41:04.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-03T14:45:03.000Z (about 6 years ago)
- Last Synced: 2025-05-31T06:17:50.439Z (about 1 year ago)
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
php ci/cd
=========
[](https://www.ansible.com/)
## 使用前置条件
- 发布机器和代码托管平台信任建立(需要拉取代码的权限)
- 发布机器和rs机器之间的互信(需要传输文件)
- 发布机器跟自己也要互信(基于key的)
- 发布机器上和rs机器上对应的父目录需要提前创建并确保权限是正确的
- php-deploy 请放到ansible的roles目录下,确保可以识别到
## 使用
```python
cd demo
ansible-playbook -i hlists deploy.yml -e "pname=php-laravel-hello-world env=dev branch=master git_repo=https://github.com/niwasawa/php-laravel-hello-world laravel_releases=3 smoketest_url=http://10.10.20.33:8877"
```