Skip to content

Commit

Permalink
adding in step to remove unused docker objects (prune)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurikam2003 committed Aug 27, 2024
1 parent 79a3055 commit b9cb734
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/beta_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ jobs:
- name: Checkout code
uses: actions/[email protected]

- name: Clean up Docker to free up space
run: |
docker system prune -f
docker volume prune -f
docker image prune -f
- name: Build server image
run: cd server && docker build -t orientation-server:beta -f beta.Dockerfile .

Expand Down Expand Up @@ -51,6 +57,12 @@ jobs:
steps:
- name: Checkout code
uses: actions/[email protected]

- name: Clean up Docker to free up space (before build)
run: |
docker system prune -f
docker volume prune -f
docker image prune -f
- name: Make envfile
uses: SpicyPizza/[email protected]
Expand Down Expand Up @@ -78,6 +90,12 @@ jobs:

- name: Push client image to container registry
run: docker push registry.digitalocean.com/uoft-orientation/orientation-client:beta

- name: Clean up Docker to free up space (after build)
run: |
docker system prune -f
docker volume prune -f
docker image prune -f
# - name: Run garbage collector
# run: doctl registry garbage-collection start --include-untagged-manifests --force uoft-orientation
Expand Down

0 comments on commit b9cb734

Please sign in to comment.