Mais conteúdo relacionado
Semelhante a Ansible & GitLab CI / CD Workshop 101 ( @Agile Tour Taipei 2017) (20)
Mais de Chen Cheng-Wei (20)
Ansible & GitLab CI / CD Workshop 101 ( @Agile Tour Taipei 2017)
- 1. Cheng Wei Chen @ Agile Tour Taipei 2017Photo by Daniel McCullough on Unsplash
Ansible & GitLab
CI / CD Workshop 101
- 12. code build test release deploy operateplan
Continuous Integration
Continuous Delivery
目標
Continuous Deployment
CIcommit dev stagingtest
testprod deploy
environment
dev
staging
prod
local
- 13. commit
code build test release deploy operateplan
Continuous Integration
Continuous Delivery
今天的案例
Continuous Deployment
CI staging
testprod deploy
environment
staging
prod
- 21. code build test release deploy operateplan
Automation
從痛點、小處著手
Automation
- 35. ‧將 Ansible Playbook 與程式碼一起
送進同一個 Project Repository?
‧自動化腳本應該如何存放?存放於
何處?
‧該如何讓 CI Runner 可以順利取得
自動化腳本呢?
延伸思考
- 51. build unit test
Stage: stg-test
build-test
build-release
phpunit
stg-deploy stg-test
stg
server
stg
server
- 57. build unit test
Stage: prod-deploy
build-test
build-release
phpunit
stg-deploy stg-test
stg
server
stg
server
prod-deploy
- 66. build unit test
Stage: prod-deploy
build-test
build-release
phpunit
stg-deploy stg-test
stg
server
stg
server
prod-deploy
prod-remove
- 69. code build test release deploy operateplan
Continuous Integration
Continuous Delivery
目標
Continuous Deployment
CIcommit dev stagingtest
testprod deploy
environment
dev
staging
prod
local
- 74. code build test release deploy operateplan
Automation
從痛點、小處著手
Automation
- 79. • Operator-triggered manual action
• Operator-written, system-specific automation
• Externally maintained generic automation
• Internally maintained, system-specific automation
• Autonomous systems that need no human
intervention
自動化的演進
https://landing.google.com/sre/book.html