Skip to content

Commit

Permalink
Create cleanupspace.yml
Browse files Browse the repository at this point in the history
Creating a workflow that helps to clean the folders to reclaim space
  • Loading branch information
madhavbk authored Jul 11, 2024
1 parent 63b2949 commit 295a9b0
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/cleanupspace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build Docker image

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build-with-docker:
runs-on: ubuntu-20.04
steps:
- name: Remove unnecessary files
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- uses: docker/build-push-action@v4
with:
context: .
tags: my_tag:latest
load: true
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Run pytest
run: docker run my_tag pytest

0 comments on commit 295a9b0

Please sign in to comment.