Skip to content

Commit

Permalink
Clean up semaphore disk before running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mgleung committed Oct 15, 2021
1 parent 05f8598 commit f10c5d6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ global_job_config:
- name: docker-hub
prologue:
commands:
# make some room on the disk
- sudo rm -rf ~/.kiex ~/.phpbrew ~/.rbenv ~/.nvm ~/.kerl
# Semaphore mounts a copy-on-write FS as /var/lib/docker in order to provide a pre-loaded cache of
# some images. However, the cache is not useful to us and the copy-on-write FS is a big problem given
# how much we churn docker containers during the build. Disable it.
- sudo systemctl stop docker
- sudo umount /var/lib/docker && sudo killall qemu-nbd || true
- sudo systemctl start docker
- echo $DOCKERHUB_PASSWORD | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
- checkout
# Semaphore is doing shallow clone on a commit without tags.
Expand Down

0 comments on commit f10c5d6

Please sign in to comment.