Fix CI workflow: remove container directive, use runner image directly
Some checks failed
CI/CD / syntax-check (push) Failing after 2m13s
CI/CD / deploy (push) Has been skipped

- 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 <noreply@anthropic.com>
This commit is contained in:
jack 2026-03-21 22:34:56 +07:00
parent 3107a2c5ad
commit 6580e42f53
2 changed files with 4 additions and 9 deletions

View file

@ -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

View file

@ -1,6 +1,6 @@
# Generated by Ansible — do not edit manually
log:
level: info
level: debug
runner:
capacity: 2