Skip to content

Commit

Permalink
Merge pull request #220 from InnopolisUni/dedarh-patch-1
Browse files Browse the repository at this point in the history
Create clean.yaml
  • Loading branch information
dedarh authored Mar 22, 2024
2 parents 2ae3df4 + 17adaf8 commit bd37258
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/clean.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Docker clean
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
inputs:
environment:
type: choice
description: "Environment"
options:
- dev
default: "dev"
jobs:
build-on-ubuntu:
runs-on: ubuntu-latest

steps:
- name: docker ps -a
run: docker ps -a
- name: Build the Docker image
run: docker images
- name: Check disk space
run: df . -h
- name: Free disk space
run: |
sudo docker rmi $(docker image ls -aq) >/dev/null 2>&1 || true
sudo docker system prune --all
sudo rm -rf \
/opt/ghc \
/usr/local/.ghcup \
/usr/lib/jvm || true
- name: Check disk space
run: df . -h

0 comments on commit bd37258

Please sign in to comment.