Use AWS Codebuild to get the code build from bitbucket and output it to S3, and then automatically deploy to the test or production environment through CodeDeploy
CodeBuild
Support branch
Support maven private server
Custom build specification file
To run CodeBuild, you need to add the build specification file buildspec.yml to the code root directory
phases: install: commands: - cp ./deploy/settings.xml /root/.m2/settings.xml pre_build: commands: - cd src build: commands: - mvn clean && mvn install artifacts: files: - src/target/*.zip discard-paths: yes cache: paths: - '/root/m2/**/*'
build result
CodeDeploy
Support rollback
Client installation agent
Support ELB
Support custom specification files
To run CodeDeploy, you need to add the build specification file deployspec.yml to the code root directory
files: - source: / destination: /home/ubuntu/app/cart permissions: - object: /home/ubuntu/epiclouds owner: ubuntu group: ubuntu hooks: BeforeInstall: - location: deploy/DeleteLib.sh timeout: 300 runas: ubuntu AfterInstall: - location: deploy/ChangePermission.sh timeout: 300 runas: ubuntu ApplicationStart: - location: deploy/start.sh timeout: 300 runas: ubuntu ApplicationStop: - location: deploy/stop.sh timeout: 300 runas: ubuntu
Deployment result
Pricing
CodeBuild: Pricing according to calculation type, 100 points free per month
CodeDeploy : Free