Skip to content

Commit

Permalink
Merge pull request #849 from UofT-Frosh-Orientation/fixing-beta
Browse files Browse the repository at this point in the history
adding in step to remove unused docker objects (prune)
  • Loading branch information
gaurikam2003 authored Aug 27, 2024
2 parents ba7f683 + b9cb734 commit 3ffdb89
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 3ffdb89

Please sign in to comment.