This documents the interactions between Amazon CodeDeploy and RocketGit.
The plan is to create a new deployment for every push/merge.
TODO: not clear how should I add this hook
TODO: filter by branch.
User requirements:
AppSpec file
Setup phase:
MyApplication
MyS3Bucket
MyDeploymentGroup
Generate:
archive_name - include date/time and/or hash, extension is .tgz
aws deploy push \
--application-name MyApplication \
--s3-location s3://MyS3Bucket/${archive_name} \
--ignore-hidden-files \
--description '...' \
--source .
aws deploy create-deployment \
--application-name MyApplication \
--deployment-group-name MyDeploymentGroup \
--s3-location 'bucket=MyS3Bucket,bundleType=tgz,version=???,eTag=...,key=${archive_name}' \
--description ''
Documentation:
http://docs.aws.amazon.com/cli/latest/reference/deploy/push.html
http://docs.aws.amazon.com/cli/latest/reference/deploy/create-deployment.html
== euca2ools ==
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"
Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/rocketgit
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/rocketgit
You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a
pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master