Files
IoT-Systems/.gitea/workflows/reset-docker.yaml
hasslesstech c820b6f990
All checks were successful
Component testing / Hub testing (push) Successful in 17s
Component testing / Store testing (push) Successful in 41s
Component testing / Integration smoke testing (push) Successful in 2m22s
[P] Always execute all steps while cleaning up
2026-03-29 13:59:08 +03:00

20 lines
547 B
YAML

name: Reset docker state
on: workflow_dispatch
jobs:
reset:
runs-on: host-arch-x86_64
name: Reset docker state
steps:
- name: Stop all containers
if: ${{always()}}
run: docker stop $(docker ps -a | cut -d " " -f 1 | tail -n +2)
- name: Remove all containers
if: ${{always()}}
run: docker rm $(docker ps -a | cut -d " " -f 1 | tail -n +2)
- name: Remove extra volumes
if: ${{always()}}
run: docker volume rm road_vision_postgres_data road_vision_pgadmin-data