Skip to content

Commit c6d67b0

Browse files
authored
Merge pull request #14 from continuousphp/feat/deploy-ecr-page
Feat/deploy ecr page
2 parents a40aa04 + 768f40a commit c6d67b0

File tree

8 files changed

+49
-4
lines changed

8 files changed

+49
-4
lines changed

docs/api.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ link: "http://docs.continuousphp.apiary.io/"
77
order: 18
88
sitemap: false
99
---
10+
11+
12+
You can find a comprehensive api documentation [here](https://continuousphp.docs.apiary.io/#reference/terms-&-conditions-acceptance/terms-conditions-acceptance-collection).
363 KB
Loading
504 KB
Loading
479 KB
Loading

docs/deployment/aws-code-deploy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ excerpt: "Deploy your applications to AWS EC2 in a few clicks."
1010
[AWS CodeDeploy](https://aws.amazon.com/codedeploy) allows you to deploy your applications directly to Amazon EC2 instances.
1111

1212
## Specify your AWS credentials
13-
To deploy to your AWS account, continuousphp needs an IAM key and secret. You can specify them in the 1st step of the project
13+
To deploy to your AWS account, continuousphp needs access keys for IAM users. You can specify them in the 1st step of the project
1414
setup or simply when adding a new pipeline to your existing project.
1515

1616
![AWS IAM credentials](/assets/doc/deployment/aws-code-deploy/iam-credentials.png)
@@ -35,4 +35,4 @@ can be found in the [AWS CodeDeploy documentation](http://docs.aws.amazon.com/co
3535
Make sure that the IAM credentials you provide only have the strict minimum of permissions. Example: The
3636
provided IAM credentials shouldn't be able to erase your S3 storage.
3737

38-
And that's it! You just configured your application to be deployed with AWS CodeDeploy.
38+
And that's it! You just configured your application to be deployed with AWS CodeDeploy.

docs/deployment/aws-ecr.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
layout: doc
3+
title: "AWS ECR - Documentation"
4+
category: "deployment"
5+
logo: aws-ecr
6+
order: 6
7+
excerpt: "Deploy your containers to AWS ECR in a few clicks."
8+
---
9+
10+
[AWS ECR](https://aws.amazon.com/ecr) is a fully-managed Docker container registry that makes it easy for developers to store, manage, and deploy Docker container images.
11+
12+
## Specify your AWS credentials
13+
To deploy to your AWS account, continuousphp needs access keys for IAM users. You can specify them in the 1st step of the project
14+
setup or simply when adding a new pipeline to your existing project.
15+
16+
![AWS IAM credentials](/assets/doc/deployment/aws-ecr/iam-credentials.png)
17+
18+
## Configure the Packaging
19+
After having configured the tests in the second step, you can now enable Docker in the Packaging configuration.
20+
21+
![AWS packing](/assets/doc/deployment/aws-ecr/packaging.png)
22+
23+
## Configure the Deployment
24+
Once you have added the IAM credentials and you defined Docker as packaging method, you can configure the deployment in the 4th step of the project/pipeline setup.
25+
26+
![AWS deployment](/assets/doc/deployment/aws-ecr/destination.png)
27+
28+
## Use environment variables to define your tags
29+
continuousphp provides you with a set of built-in environment variables that you can use to define your tags. Moreover you may want to truncate those variables then you can use the following syntax :
30+
31+
* ***CPHP_GIT_COMMIT*** : 225ff5830d804093869e5d8b6516aa7b
32+
* ***${CPHP_GIT_COMMIT}*** : 225ff5830d804093869e5d8b6516aa7b
33+
* ***${CPHP_GIT_COMMIT:0,7}*** : 225ff58
34+
* ***${CPHP_GIT_COMMIT:7}*** : 30d804093869e5d8b6516aa7b
35+
* ***${CPHP_GIT_COMMIT:-12}*** : 5d8b6516aa7b
36+
37+
!!! note "**IMPORTANT**"
38+
Make sure that the IAM credentials you provide only have the strict minimum of permissions. For instance
39+
the provided IAM credentials shouldn't be able to erase your ECR repository.
40+
41+
And that's it! You just configured your Dockerfile to be deployed with AWS ECR.

docs/deployment/aws-elastic-beanstalk.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ excerpt: "Deploy your applications to AWS EC2 in a few clicks."
1010
[AWS Elastic Beanstalk](https://aws.amazon.com/elasticbeanstalk) allows you to deploy your applications directly to Amazon EC2 instances.
1111

1212
## Specify your AWS credentials
13-
To deploy to your AWS account, continuousphp needs an IAM key and secret. You can specify them in the 1st step of the project
13+
To deploy to your AWS account, continuousphp needs access keys for IAM users. You can specify them in the 1st step of the project
1414
setup or simply when adding a new pipeline to your existing project.
1515

1616
![AWS IAM credentials](/assets/doc/deployment/aws-elastic-beanstalk/iam-credentials.png)
@@ -32,4 +32,4 @@ For more information on how to use AWS Elastic Beanstalk, check out the [documen
3232
Make sure that the IAM credentials you provide only have the strict minimum of permissions. Example: The
3333
provided IAM credentials shouldn't be able to erase your S3 storage.
3434

35-
And that's it! You just configured your application to be deployed with AWS Elastic Beanstalk.
35+
And that's it! You just configured your application to be deployed with AWS Elastic Beanstalk.

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ nav:
7878
- Generic tarball: deployment/generic-tarball.md
7979
- Script deployment: deployment/script.md
8080
- AWS CodeDeploy: deployment/aws-code-deploy.md
81+
- AWS ECR: deployment/aws-ecr.md
8182
- AWS Elastic Beanstalk: deployment/aws-elastic-beanstalk.md
8283
- Zend Server: deployment/zend-server.md
8384
- Reference guide:

0 commit comments

Comments
 (0)