mirror of
https://github.com/mkuf/prind.git
synced 2026-01-17 12:42:14 +01:00
github: remove unused files from runner before building images
This commit is contained in:
30
.github/workflows/image-workflow.yaml
vendored
30
.github/workflows/image-workflow.yaml
vendored
@@ -16,16 +16,38 @@ jobs:
|
||||
build-images:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Clean Runner
|
||||
run: |
|
||||
set -x
|
||||
## Remove files
|
||||
to_delete=(
|
||||
"/swapfile"
|
||||
"/usr/local/share/boost"
|
||||
"$AGENT_TOOLSDIRECTORY"
|
||||
"/usr/share/dotnet"
|
||||
"$ANDROID_SDK_ROOT"
|
||||
"/usr/local/lib/android"
|
||||
"$ANDROID_SDK_ROOT"
|
||||
"/usr/share/swift"
|
||||
)
|
||||
for f in ${to_delete[@]}; do
|
||||
sudo rm -rf ${f} || true
|
||||
done
|
||||
|
||||
## Clean docker
|
||||
docker system prune --all --volumes --force
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3.5.3
|
||||
|
||||
- name: Docker Setup QEMU
|
||||
uses: docker/setup-qemu-action@v1.2.0
|
||||
uses: docker/setup-qemu-action@v2.2.0
|
||||
|
||||
- name: Docker Setup Buildx
|
||||
uses: docker/setup-buildx-action@v1.6.0
|
||||
uses: docker/setup-buildx-action@v2.7.0
|
||||
|
||||
- name: Docker Login
|
||||
uses: docker/login-action@v1.10.0
|
||||
uses: docker/login-action@v2.2.0
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
2
.github/workflows/klipper.yaml
vendored
2
.github/workflows/klipper.yaml
vendored
@@ -5,7 +5,7 @@ on:
|
||||
- cron: '0 2 * * *'
|
||||
jobs:
|
||||
build:
|
||||
uses: mkuf/prind/.github/workflows/image-workflow.yaml@main
|
||||
uses: ./.github/workflows/image-workflow.yaml
|
||||
with:
|
||||
app: klipper
|
||||
secrets:
|
||||
|
||||
2
.github/workflows/klipperscreen.yaml
vendored
2
.github/workflows/klipperscreen.yaml
vendored
@@ -5,7 +5,7 @@ on:
|
||||
- cron: '0 2 * * *'
|
||||
jobs:
|
||||
build:
|
||||
uses: mkuf/prind/.github/workflows/image-workflow.yaml@main
|
||||
uses: ./.github/workflows/image-workflow.yaml
|
||||
with:
|
||||
app: klipperscreen
|
||||
secrets:
|
||||
|
||||
2
.github/workflows/moonraker.yaml
vendored
2
.github/workflows/moonraker.yaml
vendored
@@ -5,7 +5,7 @@ on:
|
||||
- cron: '0 2 * * *'
|
||||
jobs:
|
||||
build:
|
||||
uses: mkuf/prind/.github/workflows/image-workflow.yaml@main
|
||||
uses: ./.github/workflows/image-workflow.yaml
|
||||
with:
|
||||
app: moonraker
|
||||
secrets:
|
||||
|
||||
2
.github/workflows/ustreamer.yaml
vendored
2
.github/workflows/ustreamer.yaml
vendored
@@ -5,7 +5,7 @@ on:
|
||||
- cron: '0 2 * * *'
|
||||
jobs:
|
||||
build:
|
||||
uses: mkuf/prind/.github/workflows/image-workflow.yaml@main
|
||||
uses: ./.github/workflows/image-workflow.yaml
|
||||
with:
|
||||
app: ustreamer
|
||||
secrets:
|
||||
|
||||
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
### Added
|
||||
- CHANGELOG.md
|
||||
### Fixed
|
||||
- Github Action Runner running out of space
|
||||
### Changed
|
||||
### Removed
|
||||
-->
|
||||
|
||||
Reference in New Issue
Block a user