diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7ec3834..07d316c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -245,18 +245,21 @@ test: --profile migrations --profile tests PODMAN_IGNORE_CGROUPSV1_WARNING: True - script: + before_script: - dnf -y install podman podman-compose - - export PROFILES="$(printf '%s ' $COMPOSE_PROFILES)" + - cp ./infrastructure/configs/podman/ci.conf ~/.config/containers/containers.conf - cp "$TEST_STAGE_FIREBASE_CONF" ./infrastructure/configs/backend/firebase.json - # - | - # ( - # while true; do - # podman-compose -f compose.yaml $PROFILES logs -f 2>&1 - # sleep 1 - # done - # ) | grep "Error: no container" -v | tee -a compose.log & - # - LOGS_PID=$! + - podman info --format '{{.Host.EventLogger}}' + script: + - export PROFILES="$(printf '%s ' $COMPOSE_PROFILES)" + - | + ( + while true; do + podman-compose -f compose.yaml $PROFILES logs -f 2>&1 + sleep 1 + done + ) | grep "Error: no container" -v | tee -a compose.log & + - LOGS_PID=$! - | REGISTRY_PREFIX=$CI_REGISTRY_IMAGE IMAGE_TAG=$CI_COMMIT_SHA \ podman-compose -f compose.yaml -f compose.prod.yaml \ diff --git a/infrastructure/configs/podman/ci.conf b/infrastructure/configs/podman/ci.conf new file mode 100644 index 0000000..8208bec --- /dev/null +++ b/infrastructure/configs/podman/ci.conf @@ -0,0 +1,2 @@ +[engine] +events_logger = "file"