-
Notifications
You must be signed in to change notification settings - Fork 17
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
Showing
10 changed files
with
99 additions
and
59 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Delivery Lifecycle | ||
|
||
## Build Release Source Artifact | ||
|
||
0. Checkout Project Root | ||
- `git clone m2c/m2c` | ||
> Must contain: | ||
> * `composer.json` | ||
> * `auth.json.encrypted` | ||
1. Build Backend Dist | ||
- `ansible-vault --output=auth.json decrypt auth.json.encrypted` | ||
- `composer update` | ||
2. Build Frontend Dist | ||
- `yarn --frozen-lockfile` | ||
- `yarn build` | ||
3. Run Tests | ||
- | ||
|
||
## Build Release Instance Image | ||
|
||
## Update Live Instances with New Image | ||
|
||
## Execute Post Deploy Actions on [single] New Instance |
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 |
---|---|---|
|
@@ -39,3 +39,4 @@ | |
when: magento_consumer_workers_enable and magento_version is version('2.3', '>=') | ||
|
||
|
||
|
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
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 |
---|---|---|
@@ -1,48 +1,54 @@ | ||
- hosts: localhost | ||
connection: local | ||
gather_facts: false | ||
pre_tasks: | ||
- name: Collect minimum facts (we need date time stuff) | ||
setup: | ||
gather_subset: min | ||
roles: | ||
- role: cs.aws-vpc | ||
- role: cs.aws-security-group | ||
aws_security_group_rds_create: "{{ aws_rds_create }}" | ||
aws_security_group_redis_create: "{{ mageops_redis_create or mageops_redis_sessions_create }}" | ||
aws_security_group_rabbitmq_create: "{{ mageops_rabbitmq_create and magento_rabbitmq_queue }}" | ||
aws_security_group_elasticsearch_create: "{{ mageops_elasticsearch_create }}" | ||
- role: cs.aws-s3 | ||
- role: cs.aws-cloudfront | ||
aws_cloudfront_use_lambda: "{{ aws_cloudfront_optimizing_edge_lambda_enable }}" | ||
aws_cloudfront_lambda_arn: "{{ aws_cloudfront_lambda_latest_arn | default(omit, true) }}" | ||
when: aws_cloudfront_distribution_create | bool | ||
- role: cs.aws-rds | ||
when: aws_rds_create | ||
- role: cs.aws-loadbalancer | ||
lb_ssl_cert: "{{ aws_elb_https_certificate_arn }}" | ||
lb_s3_logs_bucket: "{{ aws_s3_secret_bucket }}" | ||
lb_http_port: "{{ mageops_varnish_port }}" | ||
when: aws_elb_create | ||
- role: cs.aws-ami-facts | ||
- role: cs.aws-node-facts | ||
- role: cs.aws-node-varnish | ||
aws_varnish_node_root_device: "{{ aws_ami_root_device }}" | ||
aws_varnish_node_vpc_subnet_id: "{{ aws_vpc_subnet_id }}" | ||
aws_varnish_instance_id: "{{ aws_varnish_node_instance.instance_id | default(false) }}" | ||
when: varnish_standalone | ||
- role: cs.aws-node-persistent | ||
aws_persistent_node_root_device: "{{ aws_ami_root_device }}" | ||
aws_persistent_node_vpc_subnet_id: "{{ aws_vpc_subnet_id }}" | ||
aws_persistent_instance_id: "{{ aws_persistent_node_instance.instance_id | default(false) }}" | ||
- role: cs.mysql-configure | ||
mysql_user_localhost_access: "{{ not aws_rds_create }}" | ||
- role: cs.aws-lambda-varnish | ||
when: varnish_standalone | ||
- role: cs.aws-lambda-node-coordinator | ||
when: aws_magento_cron_enabled | ||
- role: cs.aws-lambda-import | ||
- role: cs.finalize | ||
gather_facts: no | ||
tasks: | ||
- name: Refresh inventory to get info about newly created nodes | ||
meta: refresh_inventory | ||
- debug: | ||
msg: I do nothing! | ||
|
||
# - hosts: localhost | ||
# connection: local | ||
# gather_facts: false | ||
# pre_tasks: | ||
# - name: Collect minimum facts (we need date time stuff) | ||
# setup: | ||
# gather_subset: min | ||
# roles: | ||
# - role: cs.aws-vpc | ||
# - role: cs.aws-security-group | ||
# aws_security_group_rds_create: "{{ aws_rds_create }}" | ||
# aws_security_group_redis_create: "{{ mageops_redis_create or mageops_redis_sessions_create }}" | ||
# aws_security_group_rabbitmq_create: "{{ mageops_rabbitmq_create and magento_rabbitmq_queue }}" | ||
# aws_security_group_elasticsearch_create: "{{ mageops_elasticsearch_create }}" | ||
# - role: cs.aws-s3 | ||
# - role: cs.aws-cloudfront | ||
# aws_cloudfront_use_lambda: "{{ aws_cloudfront_optimizing_edge_lambda_enable }}" | ||
# aws_cloudfront_lambda_arn: "{{ aws_cloudfront_lambda_latest_arn | default(omit, true) }}" | ||
# when: aws_cloudfront_distribution_create | bool | ||
# - role: cs.aws-rds | ||
# when: aws_rds_create | ||
# - role: cs.aws-loadbalancer | ||
# lb_ssl_cert: "{{ aws_elb_https_certificate_arn }}" | ||
# lb_s3_logs_bucket: "{{ aws_s3_secret_bucket }}" | ||
# lb_http_port: "{{ mageops_varnish_port }}" | ||
# when: aws_elb_create | ||
# - role: cs.aws-ami-facts | ||
# - role: cs.aws-node-facts | ||
# - role: cs.aws-node-varnish | ||
# aws_varnish_node_root_device: "{{ aws_ami_root_device }}" | ||
# aws_varnish_node_vpc_subnet_id: "{{ aws_vpc_subnet_id }}" | ||
# aws_varnish_instance_id: "{{ aws_varnish_node_instance.instance_id | default(false) }}" | ||
# when: varnish_standalone | ||
# - role: cs.aws-node-persistent | ||
# aws_persistent_node_root_device: "{{ aws_ami_root_device }}" | ||
# aws_persistent_node_vpc_subnet_id: "{{ aws_vpc_subnet_id }}" | ||
# aws_persistent_instance_id: "{{ aws_persistent_node_instance.instance_id | default(false) }}" | ||
# - role: cs.mysql-configure | ||
# mysql_user_localhost_access: "{{ not aws_rds_create }}" | ||
# - role: cs.aws-lambda-varnish | ||
# when: varnish_standalone | ||
# - role: cs.aws-lambda-node-coordinator | ||
# when: aws_magento_cron_enabled | ||
# - role: cs.aws-lambda-import | ||
# - role: cs.finalize | ||
# tasks: | ||
# - name: Refresh inventory to get info about newly created nodes | ||
# meta: refresh_inventory |
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