-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4233cf8
commit 257cad9
Showing
15 changed files
with
397 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/Gemfile.lock | ||
/vendor | ||
/coverage | ||
site/ | ||
site/ | ||
sample/gems |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
## ArtifactRepository | ||
|
||
Supported ArtifactRepositories: | ||
- S3 | ||
|
||
### S3Bucket | ||
|
||
To create a new S3Bucket ArtifactRepository: | ||
```ruby | ||
class MyApplication < Moonshot::CLI | ||
self.artifact_repository = S3Bucket.new('my-bucket-name') | ||
end | ||
``` | ||
|
||
The store action will simply upload the file using the S3 PutObject API call. | ||
The local environment must be configured with appropriate credentials. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
## BuildMechanism | ||
|
||
### Script | ||
|
||
The Script BuildMechanism will execute a local shell script, with certain | ||
expectations. The script will run with some environment variables: | ||
|
||
- `VERSION`: The named version string passed to `build-version`. | ||
- `OUTPUT_FILE`: The file that the script is expected to produce. | ||
|
||
If the file is not created by the build script, deployment will fail. Otherwise, | ||
the output file will be uploaded using the ArtifactRepository. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
## DeploymentMechanism | ||
|
||
Supported DeploymentMechanisms: | ||
- CodeDeploy | ||
|
||
### CodeDeploy | ||
|
||
The CodeDeploy DeploymentMechanism will create a CodeDeploy Application and | ||
Deployment Group matching the application name. The created Deployment Group | ||
will point at the logical resource id provided to the constructor (e.g. | ||
`CodeDeploy.new(asg: 'MyAutoScalingGroup')`). During the `deploy-code` action, | ||
the ArtifactRepository is checked for compatibility with CodeDeploy. Currently | ||
only the S3Bucket is supported, though CodeDeploy itself supports deploying from | ||
a git source. | ||
|
||
Assumptions made by the CodeDeploy mechanism: | ||
- You are using an S3Bucket ArtifactRepository. | ||
- You want to deploy using the OneAtATime method. | ||
- Your build artifact contains an appspec.yml file. | ||
|
||
For more information about CodeDeploy, see the [AWS Documentation][1]. | ||
|
||
[1]: http://docs.aws.amazon.com/codedeploy/latest/userguide/welcome.html |
Oops, something went wrong.