improve ci cleanup
This commit is contained in:
parent
b63304594e
commit
07c637e222
1 changed files with 2 additions and 2 deletions
4
.github/workflows/test-integration.yml
vendored
4
.github/workflows/test-integration.yml
vendored
|
|
@ -40,10 +40,10 @@ jobs:
|
|||
docker builder prune -af || true
|
||||
docker-compose -f docker-compose.yml down -v --remove-orphans || true
|
||||
|
||||
- name: Cleanup OpenSearch data (root-owned files)
|
||||
- name: Cleanup root-owned files (OpenSearch data, config)
|
||||
run: |
|
||||
for i in 1 2 3; do
|
||||
docker run --rm -v $(pwd):/work alpine rm -rf /work/opensearch-data && break
|
||||
docker run --rm -v $(pwd):/work alpine sh -c "rm -rf /work/opensearch-data /work/config" && break
|
||||
echo "Attempt $i failed, retrying in 5s..."
|
||||
sleep 5
|
||||
done || true
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue