-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding in step to remove unused docker objects (prune)
- Loading branch information
1 parent
79a3055
commit b9cb734
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 . | ||
|
||
|
@@ -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] | ||
|
@@ -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 | ||
|