Skip to content
Permalink
Browse files
stop old containers
  • Loading branch information
mseth10 committed May 20, 2022
1 parent bb6f5c2 commit 371f6a7074ae19a61edd9fb0fd1e82d24c24e965
Showing 2 changed files with 22 additions and 0 deletions.
@@ -29,6 +29,17 @@ jobs:
matrix:
pyver: ['3.7', '3.8', '3.9', '3.10']
steps:
- name: Stop old running containers (if any)
shell: bash
run: |
running_containers=$(docker ps -q) && \
if [[ $running_containers == "" ]]; then
echo "No running containers";
else
echo "Running container(s) found" && \
docker stop $running_containers;
fi
docker container prune -f
- name: Clean repository
shell: bash
run: find /home/ubuntu/actions-runner/_work/tensorflow/tensorflow/. -name . -o -prune -exec sudo rm -rf -- {} + || true
@@ -29,6 +29,17 @@ jobs:
matrix:
pyver: ['3.7', '3.8', '3.9', '3.10']
steps:
- name: Stop old running containers (if any)
shell: bash
run: |
running_containers=$(docker ps -q) && \
if [[ $running_containers == "" ]]; then
echo "No running containers";
else
echo "Running container(s) found" && \
docker stop $running_containers;
fi
docker container prune -f
- name: Clean repository
shell: bash
run: find /home/ubuntu/actions-runner/_work/tensorflow/tensorflow/. -name . -o -prune -exec sudo rm -rf -- {} + || true

0 comments on commit 371f6a7

Please sign in to comment.