fix: Resolve recursive loop in stacks_base_path variable
Some checks failed
🚀 Build & Deploy Image / Determine Build Necessity (push) Successful in 30s
🚀 Build & Deploy Image / Build Runtime Base Image (push) Successful in 11s
🚀 Build & Deploy Image / Run Tests & Quality Checks (push) Has been skipped
Security Vulnerability Scan / Composer Security Audit (push) Has been skipped
🚀 Build & Deploy Image / Build Docker Image (push) Successful in 13s
Security Vulnerability Scan / Check for Dependency Changes (push) Successful in 54s
🚀 Build & Deploy Image / Auto-deploy to Staging (push) Failing after 54s
🚀 Build & Deploy Image / Auto-deploy to Production (push) Has been skipped
Some checks failed
🚀 Build & Deploy Image / Determine Build Necessity (push) Successful in 30s
🚀 Build & Deploy Image / Build Runtime Base Image (push) Successful in 11s
🚀 Build & Deploy Image / Run Tests & Quality Checks (push) Has been skipped
Security Vulnerability Scan / Composer Security Audit (push) Has been skipped
🚀 Build & Deploy Image / Build Docker Image (push) Successful in 13s
Security Vulnerability Scan / Check for Dependency Changes (push) Successful in 54s
🚀 Build & Deploy Image / Auto-deploy to Staging (push) Failing after 54s
🚀 Build & Deploy Image / Auto-deploy to Production (push) Has been skipped
- Use stacks_base_path_default instead of self-reference - Fixes 'Recursive loop detected' error in install-composer-dependencies playbook
This commit is contained in:
@@ -5,14 +5,14 @@
|
|||||||
become: no
|
become: no
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
# Base path for deployment stacks
|
# Base path for deployment stacks (default value)
|
||||||
stacks_base_path: "{{ stacks_base_path | default('/home/deploy') }}"
|
stacks_base_path_default: "/home/deploy"
|
||||||
# Determine stack path based on environment
|
# Determine stack path based on environment
|
||||||
application_stack_dest: >-
|
application_stack_dest: >-
|
||||||
{%- if deployment_environment == 'staging' -%}
|
{%- if deployment_environment == 'staging' -%}
|
||||||
{{ staging_stack_path | default(stacks_base_path + '/staging') }}
|
{{ staging_stack_path | default((stacks_base_path | default(stacks_base_path_default)) + '/staging') }}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{{ app_stack_path | default(stacks_base_path + '/production') }}
|
{{ app_stack_path | default((stacks_base_path | default(stacks_base_path_default)) + '/production') }}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
application_compose_suffix: >-
|
application_compose_suffix: >-
|
||||||
{%- if deployment_environment == 'staging' -%}
|
{%- if deployment_environment == 'staging' -%}
|
||||||
|
|||||||
Reference in New Issue
Block a user