27 lines
737 B
YAML
27 lines
737 B
YAML
name: Check Docker Pi
|
|
|
|
on:
|
|
push:
|
|
branches: [check-docker]
|
|
|
|
jobs:
|
|
check-docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Get Docker Info
|
|
run: |
|
|
date > docker_info.txt
|
|
echo "==== DOCKER PS ====" >> docker_info.txt
|
|
docker ps -a >> docker_info.txt
|
|
echo "==== DOCKER STATS ====" >> docker_info.txt
|
|
docker stats --no-stream >> docker_info.txt
|
|
|
|
git config --global user.name "Gitea Actions"
|
|
git config --global user.email "actions@gitea.local"
|
|
git add docker_info.txt
|
|
git commit -m "chore: add docker info" || true
|
|
git push origin check-docker
|