Some checks failed
🚀 Build & Deploy Image / Determine Build Necessity (push) Failing after 10m14s
🚀 Build & Deploy Image / Build Runtime Base Image (push) Has been skipped
🚀 Build & Deploy Image / Build Docker Image (push) Has been skipped
🚀 Build & Deploy Image / Run Tests & Quality Checks (push) Has been skipped
🚀 Build & Deploy Image / Auto-deploy to Staging (push) Has been skipped
🚀 Build & Deploy Image / Auto-deploy to Production (push) Has been skipped
Security Vulnerability Scan / Check for Dependency Changes (push) Failing after 11m25s
Security Vulnerability Scan / Composer Security Audit (push) Has been cancelled
- Remove middleware reference from Gitea Traefik labels (caused routing issues) - Optimize Gitea connection pool settings (MAX_IDLE_CONNS=30, authentication_timeout=180s) - Add explicit service reference in Traefik labels - Fix intermittent 504 timeouts by improving PostgreSQL connection handling Fixes Gitea unreachability via git.michaelschiemer.de
59 lines
2.1 KiB
YAML
59 lines
2.1 KiB
YAML
---
|
|
- name: Verify Environment Variable Loading
|
|
hosts: production
|
|
gather_facts: no
|
|
become: no
|
|
|
|
vars:
|
|
application_stack_dest: "{{ app_stack_path | default(stacks_base_path + '/production') }}"
|
|
application_compose_suffix: "production.yml"
|
|
|
|
tasks:
|
|
- name: Check if docker-compose.production.yml has env_file with absolute path
|
|
shell: |
|
|
grep -A 2 "env_file:" {{ application_stack_dest }}/docker-compose.production.yml | head -5
|
|
delegate_to: "{{ inventory_hostname }}"
|
|
register: env_file_check
|
|
changed_when: false
|
|
|
|
- name: Display env_file configuration
|
|
debug:
|
|
msg: |
|
|
env_file configuration in docker-compose.production.yml:
|
|
{{ env_file_check.stdout }}
|
|
|
|
- name: Wait for container to be running
|
|
pause:
|
|
seconds: 3
|
|
|
|
- name: Check all environment variables in queue-worker container
|
|
shell: |
|
|
timeout 5 docker compose -f {{ application_stack_dest }}/docker-compose.base.yml -f {{ application_stack_dest }}/docker-compose.{{ application_compose_suffix }} exec -T queue-worker env 2>&1 | grep -E "^DB_|^APP_|^REDIS_" | sort || echo "CONTAINER_NOT_RUNNING"
|
|
register: all_env_vars
|
|
changed_when: false
|
|
failed_when: false
|
|
ignore_errors: yes
|
|
retries: 3
|
|
delay: 2
|
|
|
|
- name: Display all environment variables
|
|
debug:
|
|
msg: |
|
|
All DB/APP/REDIS Environment Variables in queue-worker:
|
|
{{ all_env_vars.stdout }}
|
|
|
|
- name: Test if we can read .env file from container
|
|
shell: |
|
|
docker compose -f {{ application_stack_dest }}/docker-compose.base.yml -f {{ application_stack_dest }}/docker-compose.{{ application_compose_suffix }} exec -T queue-worker cat /home/deploy/deployment/stacks/production/.env 2>&1 | head -20 || echo "FILE_NOT_READABLE"
|
|
register: env_file_read_test
|
|
changed_when: false
|
|
failed_when: false
|
|
ignore_errors: yes
|
|
|
|
- name: Display .env file read test
|
|
debug:
|
|
msg: |
|
|
.env file read test from container:
|
|
{{ env_file_read_test.stdout }}
|
|
|