[P] Always execute all steps while cleaning up #38
@@ -7,10 +7,13 @@ jobs:
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user