Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
1db7fb0
Adding container push and build code.
gregharvey Jun 22, 2023
b45c182
Fixing some minor issues.
gregharvey Jun 22, 2023
6211767
Docs updates and template flexibility improvement.
gregharvey Jun 22, 2023
3eecd60
Creating separate registry name for handling docker push.
gregharvey Jun 22, 2023
a794855
Trying to get the registry name right.
gregharvey Jun 22, 2023
6c6db26
Adding AWS stack components to ECS builds.
gregharvey Jun 27, 2023
21312cf
Force a docker logout.
gregharvey Jun 27, 2023
9005d12
Need to delegate docker commands to the controller.
gregharvey Jun 27, 2023
a609bfb
Trying deleting the credentials file instead.
gregharvey Jun 27, 2023
5990127
Fixing var name in subnet.yml.
gregharvey Jun 27, 2023
40b2687
Missing some ACM variables.
gregharvey Jun 27, 2023
d32257d
Allowing us to set wait timeout for TG creation.
gregharvey Jun 27, 2023
687ff13
Uncommenting cpu and memory vars for ECS with Fargate.
gregharvey Jun 27, 2023
3113716
Missed a variable in ELB creation.
gregharvey Jun 27, 2023
21ece99
Merge branch '1.x' into ecs_deployments-PR-1.x
gregharvey Jun 27, 2023
904c512
Merge branch 'ecs_deployments' into ecs_deployments-PR-1.x
gregharvey Jun 27, 2023
a78b57a
Couple of linting fixes.
gregharvey Jun 27, 2023
d12e26a
Merge branch 'ecs_deployments' into ecs_deployments-PR-1.x
gregharvey Jun 27, 2023
a9162ba
Force building and tagging of containers as an option.
gregharvey Jun 27, 2023
6b58d32
Merge branch '1.x' into ecs_deployments-PR-1.x
gregharvey Jun 27, 2023
dafb13b
Merge branch 'ecs_deployments' into ecs_deployments-PR-1.x
gregharvey Jun 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/roles/deploy_container.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ AWS ECR registries require the AWS CLI user provided for `ce-deploy` to have the
deploy_container:
container_name: example
container_tag: latest # tag will take format container_name:container_tag
container_force_build: true # force Docker to build and tag a new image
docker_registry_name: index.docker.io/example # combines with container_name to make the full registry name, docker_registry_name/container_name
docker_registry_user: example
docker_registry_pass: asdf1234
docker_base_command: "docker image build"
docker_build_dir: "{{ _ce_deploy_build_dir }}"
dockerfile_template: example.j2 # provide a templates directory next to your playbook and change this to match your Dockerfile template name
environment_vars: {} # dictionary you can populate for use in a custom Dockerfile template
environment_vars: {} # dictionary you can populate for use in a custom Dockerfile template
# Requires the deploy IAM user to have the managed EC2InstanceProfileForImageBuilderECRContainerBuilds policy attached
aws_ecr:
enabled: false # set to true if using AWS ECR
Expand Down
3 changes: 2 additions & 1 deletion roles/deploy_container/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ AWS ECR registries require the AWS CLI user provided for `ce-deploy` to have the
deploy_container:
container_name: example
container_tag: latest # tag will take format container_name:container_tag
container_force_build: true # force Docker to build and tag a new image
docker_registry_name: index.docker.io/example # combines with container_name to make the full registry name, docker_registry_name/container_name
docker_registry_user: example
docker_registry_pass: asdf1234
docker_base_command: "docker image build"
docker_build_dir: "{{ _ce_deploy_build_dir }}"
dockerfile_template: example.j2 # provide a templates directory next to your playbook and change this to match your Dockerfile template name
environment_vars: {} # dictionary you can populate for use in a custom Dockerfile template
environment_vars: {} # dictionary you can populate for use in a custom Dockerfile template
# Requires the deploy IAM user to have the managed EC2InstanceProfileForImageBuilderECRContainerBuilds policy attached
aws_ecr:
enabled: false # set to true if using AWS ECR
Expand Down
1 change: 1 addition & 0 deletions roles/deploy_container/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
deploy_container:
container_name: example
container_tag: latest # tag will take format container_name:container_tag
container_force_build: true # force Docker to build and tag a new image
docker_registry_name: index.docker.io/example # combines with container_name to make the full registry name, docker_registry_name/container_name
docker_registry_user: example
docker_registry_pass: asdf1234
Expand Down
2 changes: 2 additions & 0 deletions roles/deploy_container/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
tag: "{{ deploy_container.container_tag | default('latest') }}"
push: true
source: build
force_source: "{{ deploy_container.container_force_build }}"
force_tag: "{{ deploy_container.container_force_build }}"
delegate_to: localhost

# Fetch the ACM role from ce-provision
Expand Down