Refactor CI workflows and fix timezone handling in containers

- Renamed test-cli.yml to test-code.yml and updated job name.
- Extended timeout for test-deploy workflow from 30 to 240 minutes.
- Skipped Ansible timezone configuration inside Docker/Podman/containerd to avoid write errors in CI.
- Added --skip-tests to the initial deploy step for improved CI stability.

Origin: https://chatgpt.com/share/69301c58-6628-800f-9e3a-f026c01b6e17
This commit is contained in:
2025-12-03 12:17:59 +01:00
parent d12f7a10a6
commit a31ef07718
3 changed files with 5 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ on:
pull_request:
jobs:
execute-tests:
test-code:
runs-on: ubuntu-latest
timeout-minutes: 15

View File

@@ -9,7 +9,7 @@ on:
jobs:
test-deploy:
runs-on: ubuntu-latest
timeout-minutes: 30
timeout-minutes: 240
steps:
- name: Checkout repository
@@ -37,7 +37,7 @@ jobs:
VAULT_FILE="inventories/github-ci/.password"
# First deploy with debug
infinito deploy "$INVENTORY_PATH" -T server -p "$VAULT_FILE" --debug
infinito deploy "$INVENTORY_PATH" -T server -p "$VAULT_FILE" --debug --skip-tests
'
# 2) Second deploy: reset + debug

View File

@@ -129,6 +129,8 @@
- name: "Ensure correct timezone is '{{ HOST_TIMEZONE }}'"
community.general.timezone:
name: "{{ HOST_TIMEZONE }}"
when: ansible_facts.virtualization_type | default('') not in ['docker', 'containerd', 'podman']
- name: "Load base roles"
include_tasks: "./tasks/groups/{{ item }}-roles.yml"