Skip to content

Commit

Permalink
[ci/debug] Debug docker on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed May 22, 2024
1 parent 7bc4790 commit c2d29b0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on: # yamllint disable-line rule:truthy
- dev

jobs:
increase-verbosity:

build:
name: Build ${{ matrix.distro }}
runs-on: ubuntu-20.04
Expand All @@ -26,6 +28,21 @@ jobs:
- debian11

steps:
- name: Check Docker Version
run: docker --version

- name: Check Docker Info
run: docker info

- name: Enable Debug Output
run: |
sudo mkdir -p /etc/systemd/system/docker.service.d
echo '[Service]' | sudo tee /etc/systemd/system/docker.service.d/override.conf
echo 'Environment="DOCKER_OPTS=--debug"' | sudo tee -a /etc/systemd/system/docker.service.d/override.conf
sudo systemctl daemon-reload
sudo systemctl restart docker
sudo journalctl -u docker.service --no-pager --since "5 minutes ago"
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
Expand All @@ -39,6 +56,8 @@ jobs:
run: |
pip install molecule molecule-plugins[docker] yamllint ansible-lint docker
pip install openwisp-utils[qa]
# https://github.com/ansible-community/molecule-plugins/issues/256
python -m pip install 'requests<2.32'

- name: Install Ansible Galaxy dependencies
run: ansible-galaxy collection install "community.general:>=3.6.0"
Expand Down

0 comments on commit c2d29b0

Please sign in to comment.