From 6580e42f530fc42125f30d15b7446f0ccb623f41 Mon Sep 17 00:00:00 2001 From: jack Date: Sat, 21 Mar 2026 22:34:56 +0700 Subject: [PATCH] Fix CI workflow: remove container directive, use runner image directly - Remove container: python:3.12-slim (lacked Node.js for actions/checkout) - Use runner's ubuntu-latest image which has Node.js + Python pre-installed - Fix deploy job if condition (remove ${{ }} wrapper) - Enable debug logging in act_runner config Co-Authored-By: Claude Sonnet 4.6 --- .forgejo/workflows/deploy.yml | 11 +++-------- roles/services/templates/act_runner_config.yaml.j2 | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 8db845b..83cd876 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -9,30 +9,25 @@ on: jobs: syntax-check: runs-on: ubuntu-latest - container: - image: python:3.12-slim steps: - uses: actions/checkout@v4 - name: Install ansible - run: pip install ansible --quiet + run: pip3 install ansible --quiet --break-system-packages - name: Syntax check run: ansible-playbook playbooks/deploy.yml --syntax-check -i inventory/ deploy: needs: syntax-check - if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' }} + if: github.ref == 'refs/heads/master' && github.event_name == 'push' runs-on: ubuntu-latest - container: - image: python:3.12-slim steps: - uses: actions/checkout@v4 - name: Install dependencies run: | - apt-get update -qq && apt-get install -y openssh-client --no-install-recommends - pip install ansible --quiet + pip3 install ansible --quiet --break-system-packages ansible-galaxy collection install ansible.posix community.general community.docker --quiet - name: Configure SSH diff --git a/roles/services/templates/act_runner_config.yaml.j2 b/roles/services/templates/act_runner_config.yaml.j2 index bc929c4..28c97b9 100644 --- a/roles/services/templates/act_runner_config.yaml.j2 +++ b/roles/services/templates/act_runner_config.yaml.j2 @@ -1,6 +1,6 @@ # Generated by Ansible — do not edit manually log: - level: info + level: debug runner: capacity: 2