-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixing docker-ansible playbooks and timeout * Bumping README version * debugging inventory.yaml * adding check * Removing inventory debug
- Loading branch information
Showing
9 changed files
with
69 additions
and
28 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 |
---|---|---|
|
@@ -69,7 +69,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- id: deploy | ||
uses: bitovi/[email protected].0 | ||
uses: bitovi/[email protected].8 | ||
with: | ||
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
|
@@ -97,7 +97,7 @@ jobs: | |
steps: | ||
- id: deploy | ||
name: Deploy | ||
uses: bitovi/[email protected].0 | ||
uses: bitovi/[email protected].8 | ||
with: | ||
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
|
@@ -124,7 +124,7 @@ jobs: | |
1. [Certificates](#certificate-inputs) | ||
1. [Load Balancer](#load-balancer-inputs) | ||
1. [Application](#application-inputs) | ||
1. [Terraform](#terraform-inputs) | ||
1. [Deployment](#deployment-inputs) | ||
|
||
The following inputs can be used as `step.with` keys | ||
<br/> | ||
|
@@ -230,12 +230,13 @@ The following inputs can be used as `step.with` keys | |
<hr/> | ||
<br/> | ||
|
||
#### **Terraform Inputs** | ||
#### **Deployment Inputs** | ||
| Name | Type | Description | | ||
|------------------|---------|------------------------------------| | ||
| `tf_state_bucket` | String | AWS S3 bucket name to use for Terraform state. See [note](#s3-buckets-naming) | | ||
| `tf_state_bucket_destroy` | Boolean | Force purge and deletion of S3 bucket defined. Any file contained there will be destroyed. `stack_destroy` must also be `true`. Default is `false`. | | ||
| `additional_tags` | JSON | Add additional tags to the terraform [default tags](https://www.hashicorp.com/blog/default-tags-in-the-terraform-aws-provider), any tags put here will be added to all provisioned resources.| | ||
| `ansible_start_docker_timeout` | String | Ammount of time in seconds it takes Ansible to mark as failed the startup of docker. Defaults to `300`.| | ||
<hr/> | ||
<br/> | ||
<br/> | ||
|
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,6 +1,16 @@ | ||
- name: Start docker-compose | ||
ansible.builtin.command: "docker compose --project-directory {{ app_install_root }}/{{ app_repo_name }} up --detach --build --force-recreate --remove-orphans={{ docker_remove_orphans }}" | ||
- name: Start docker-compose with remove orphans | ||
ansible.builtin.command: "docker compose --project-directory {{ app_install_root }}/{{ app_repo_name }} up --detach --build --force-recreate --remove-orphans" | ||
register: output | ||
async: "{{ ansible_start_docker_timeout }}" | ||
poll: 5 | ||
when: docker_remove_orphans | bool | ||
|
||
- name: Start docker-compose without remove orphans | ||
ansible.builtin.command: "docker compose --project-directory {{ app_install_root }}/{{ app_repo_name }} up --detach --build --force-recreate" | ||
register: output | ||
async: "{{ ansible_start_docker_timeout }}" | ||
poll: 5 | ||
when: not ( docker_remove_orphans | bool ) | ||
|
||
- ansible.builtin.debug: | ||
var: output |
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