Skip to content
Browse files
Remove left-over docker containers before fixing permissions (#5)
If the docker container is still running and creating files (as might be
the case for the prod image builds) then some files could be left
uncleaned, causing the next job to fail.
  • Loading branch information
ashb committed Mar 1, 2021
1 parent ecaa76e commit eb0e14d18790c4795e89653ce096c0a4168208ff
Showing 1 changed file with 3 additions and 1 deletion.
@@ -120,6 +120,9 @@ write_files:
- path: /usr/local/sbin/
content: |
echo "Left-over containers:"
docker ps -a
docker ps -qa | xargs --verbose --no-run-if-empty docker rm -fv
if [[ -d ~runner/actions-runner/_work/airflow/airflow ]]; then
cd ~runner/actions-runner/_work/airflow/airflow
@@ -133,7 +136,6 @@ write_files:
git clean -fxd \
docker ps -qa | xargs --no-run-if-empty docker rm -fv
owner: root:root
permissions: '0775'

0 comments on commit eb0e14d

Please sign in to comment.