From 28916595c481711889716f68906c3abfdff4e089 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Mon, 10 Jan 2022 12:19:15 +0100 Subject: [PATCH] ci: Implement cleanup for jobs Fixes #631 Signed-off-by: Ettore Di Giacinto --- .github/build.yaml.gomplate | 40 ++++----- .../build-examples-green-x86_64.yaml | 24 ++++- .../workflows/build-master-blue-arm64.yaml | 40 ++++++++- .../workflows/build-master-blue-x86_64.yaml | 40 ++++++++- .../workflows/build-master-green-arm64.yaml | 68 +++++++++++++- .../workflows/build-master-green-x86_64.yaml | 88 ++++++++++++++++++- .../workflows/build-master-orange-arm64.yaml | 40 ++++++++- .../workflows/build-master-orange-x86_64.yaml | 40 ++++++++- .../workflows/build-nightly-blue-x86_64.yaml | 21 ++++- .../workflows/build-nightly-green-x86_64.yaml | 27 +++++- .../build-nightly-orange-x86_64.yaml | 21 ++++- .github/workflows/build-pr-blue-arm64.yaml | 25 +++++- .github/workflows/build-pr-blue-x86_64.yaml | 25 +++++- .github/workflows/build-pr-green-arm64.yaml | 53 ++++++++++- .github/workflows/build-pr-green-x86_64.yaml | 53 ++++++++++- .github/workflows/build-pr-orange-arm64.yaml | 25 +++++- .github/workflows/build-pr-orange-x86_64.yaml | 25 +++++- .../workflows/build-releases-blue-arm64.yaml | 40 ++++++++- .../workflows/build-releases-blue-x86_64.yaml | 40 ++++++++- .../workflows/build-releases-green-arm64.yaml | 68 +++++++++++++- .../build-releases-green-x86_64.yaml | 88 ++++++++++++++++++- .../build-releases-orange-arm64.yaml | 40 ++++++++- .../build-releases-orange-x86_64.yaml | 40 ++++++++- 23 files changed, 900 insertions(+), 71 deletions(-) diff --git a/.github/build.yaml.gomplate b/.github/build.yaml.gomplate index 1f8c7489d2c..2d8a644de28 100644 --- a/.github/build.yaml.gomplate +++ b/.github/build.yaml.gomplate @@ -13,28 +13,34 @@ - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow - {{{- if not $config.local_runner }}} - - name: Release space from worker - run: | - sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android - sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET - {{{- end }}} + {{{ tmpl.Exec "runner_cleanup" }}} - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ {{{ end }}} -{{{define "prepare_build" }}} +{{{define "runner_cleanup" }}} {{{ $config := (datasource "config") }}} + - name: Release space from worker ♻ + if: always() + run: | {{{- if $config.local_runner }}} - - run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true + {{{- else }}} + sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android + sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET {{{- end }}} +{{{ end }}} + +{{{define "prepare_build" }}} + {{{ $config := (datasource "config") }}} + {{{ tmpl.Exec "runner_cleanup" }}} {{{- if $config.local_runner }}} {{{ $arch := $config.arch }}} @@ -107,11 +113,6 @@ FLAVOR: {{{ $flavor }}} ARCH: {{{ $config.arch }}} steps: - {{{- if $config.local_runner }}} - - run: | - sudo rm -rf build || true - sudo rm -rf bin || true - {{{- end }}} {{{ tmpl.Exec "prepare_worker" }}} - name: Build 🔧 shell: 'script -q -e -c "bash {0}"' @@ -186,6 +187,7 @@ name: build-{{{ $flavor }}}-{{{ $config.arch }}} path: build if-no-files-found: error + {{{ tmpl.Exec "runner_cleanup" }}} {{{end}}} {{{define "build_iso"}}} @@ -702,12 +704,7 @@ {{{- end }}} steps: - {{{- if $config.local_runner }}} - - name: Cleanup - run: | - sudo rm -rf build || true - sudo rm -rf bin || true - {{{- end }}} + {{{ tmpl.Exec "runner_cleanup" }}} - name: Install OS deps run: | sudo apt-get update @@ -908,11 +905,6 @@ {{{ tmpl.Exec "runner" }}} {{{tmpl.Exec "if_with_labels" }}} steps: - {{{- if $config.local_runner }}} - - run: | - sudo rm -rf build || true - sudo rm -rf bin || true - {{{- end }}} {{{ tmpl.Exec "prepare_worker" }}} {{{ tmpl.Exec "prepare_build" }}} {{{ tmpl.Exec "make" "deps" }}} diff --git a/.github/workflows/build-examples-green-x86_64.yaml b/.github/workflows/build-examples-green-x86_64.yaml index dc03a03b666..8daedc04e38 100644 --- a/.github/workflows/build-examples-green-x86_64.yaml +++ b/.github/workflows/build-examples-green-x86_64.yaml @@ -22,13 +22,19 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow - - name: Release space from worker + - name: Release space from worker ♻ + if: always() run: | sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android + sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET - name: Install Go uses: actions/setup-go@v2 with: @@ -56,13 +62,19 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow - - name: Release space from worker + - name: Release space from worker ♻ + if: always() run: | sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android + sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET - name: Install Go uses: actions/setup-go@v2 with: @@ -90,13 +102,19 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow - - name: Release space from worker + - name: Release space from worker ♻ + if: always() run: | sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android + sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET - name: Install Go uses: actions/setup-go@v2 with: diff --git a/.github/workflows/build-master-blue-arm64.yaml b/.github/workflows/build-master-blue-arm64.yaml index 9e7ee9973f4..102181ff62c 100644 --- a/.github/workflows/build-master-blue-arm64.yaml +++ b/.github/workflows/build-master-blue-arm64.yaml @@ -21,13 +21,16 @@ jobs: # For non x86_64 archs, skip the *-fips build as there are no golang releases in other arches SKIP_PACKAGES: "build/golang-fips toolchain-fips/yip toolchain-fips/luet-makeiso toolchain-fips/luet live/syslinux live/systemd-boot live/boot" steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-arm64.tar.gz -o go1.17.5.linux-arm64.tar.gz @@ -39,6 +42,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -82,6 +95,16 @@ jobs: name: build-blue-arm64 path: build if-no-files-found: error + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true image-link-blue: runs-on: ubuntu-latest needs: publish-blue @@ -119,13 +142,16 @@ jobs: PUBLISH_ARGS: "--plugin luet-cosign" COSIGN_FULCIO_URL: "https://v1.fulcio.sigstore.dev" steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-arm64.tar.gz -o go1.17.5.linux-arm64.tar.gz @@ -137,6 +163,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ diff --git a/.github/workflows/build-master-blue-x86_64.yaml b/.github/workflows/build-master-blue-x86_64.yaml index 87e4eacb438..324b5cd49f2 100644 --- a/.github/workflows/build-master-blue-x86_64.yaml +++ b/.github/workflows/build-master-blue-x86_64.yaml @@ -19,13 +19,16 @@ jobs: PUSH_CACHE: true REPO_CACHE: quay.io/costoolkit/build-blue-cache steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-amd64.tar.gz -o go1.17.5.linux-amd64.tar.gz @@ -37,6 +40,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -80,6 +93,16 @@ jobs: name: build-blue-x86_64 path: build if-no-files-found: error + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true image-link-blue: runs-on: ubuntu-latest needs: publish-blue @@ -117,13 +140,16 @@ jobs: PUBLISH_ARGS: "--plugin luet-cosign" COSIGN_FULCIO_URL: "https://v1.fulcio.sigstore.dev" steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-amd64.tar.gz -o go1.17.5.linux-amd64.tar.gz @@ -135,6 +161,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ diff --git a/.github/workflows/build-master-green-arm64.yaml b/.github/workflows/build-master-green-arm64.yaml index c3f5aacce6b..ad46b1b704f 100644 --- a/.github/workflows/build-master-green-arm64.yaml +++ b/.github/workflows/build-master-green-arm64.yaml @@ -21,13 +21,16 @@ jobs: # For non x86_64 archs, skip the *-fips build as there are no golang releases in other arches SKIP_PACKAGES: "build/golang-fips toolchain-fips/yip toolchain-fips/luet-makeiso toolchain-fips/luet live/syslinux live/systemd-boot live/boot" steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-arm64.tar.gz -o go1.17.5.linux-arm64.tar.gz @@ -39,6 +42,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -82,6 +95,16 @@ jobs: name: build-green-arm64 path: build if-no-files-found: error + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true iso-squashfs-green: runs-on: ubuntu-latest needs: build-green-arm64 @@ -93,6 +116,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -245,6 +278,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -426,13 +469,16 @@ jobs: PUBLISH_ARGS: "--plugin luet-cosign" COSIGN_FULCIO_URL: "https://v1.fulcio.sigstore.dev" steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-arm64.tar.gz -o go1.17.5.linux-arm64.tar.gz @@ -444,6 +490,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -489,10 +545,16 @@ jobs: needs: - build-green-arm64 steps: - - name: Cleanup + - name: Release space from worker ♻ + if: always() run: | sudo rm -rf build || true sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install OS deps run: | sudo apt-get update diff --git a/.github/workflows/build-master-green-x86_64.yaml b/.github/workflows/build-master-green-x86_64.yaml index a9d615d2543..17e2ddc45f1 100644 --- a/.github/workflows/build-master-green-x86_64.yaml +++ b/.github/workflows/build-master-green-x86_64.yaml @@ -19,13 +19,16 @@ jobs: PUSH_CACHE: true REPO_CACHE: quay.io/costoolkit/build-green-cache steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-amd64.tar.gz -o go1.17.5.linux-amd64.tar.gz @@ -37,6 +40,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -80,6 +93,16 @@ jobs: name: build-green-x86_64 path: build if-no-files-found: error + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true iso-squashfs-green: runs-on: ubuntu-latest needs: build-green-x86_64 @@ -91,6 +114,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -356,6 +389,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -650,13 +693,16 @@ jobs: PUBLISH_ARGS: "--plugin luet-cosign" COSIGN_FULCIO_URL: "https://v1.fulcio.sigstore.dev" steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-amd64.tar.gz -o go1.17.5.linux-amd64.tar.gz @@ -668,6 +714,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -713,10 +769,16 @@ jobs: needs: - build-green-x86_64 steps: - - name: Cleanup + - name: Release space from worker ♻ + if: always() run: | sudo rm -rf build || true sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install OS deps run: | sudo apt-get update @@ -828,6 +890,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -854,6 +926,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ diff --git a/.github/workflows/build-master-orange-arm64.yaml b/.github/workflows/build-master-orange-arm64.yaml index 7bfe7e6793d..19c2a371374 100644 --- a/.github/workflows/build-master-orange-arm64.yaml +++ b/.github/workflows/build-master-orange-arm64.yaml @@ -23,13 +23,16 @@ jobs: # For non x86_64 archs, skip the *-fips build as there are no golang releases in other arches SKIP_PACKAGES: "build/golang-fips toolchain-fips/yip toolchain-fips/luet-makeiso toolchain-fips/luet live/syslinux live/systemd-boot live/boot" steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-arm64.tar.gz -o go1.17.5.linux-arm64.tar.gz @@ -41,6 +44,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -84,6 +97,16 @@ jobs: name: build-orange-arm64 path: build if-no-files-found: error + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true image-link-orange: runs-on: ubuntu-latest needs: publish-orange @@ -121,13 +144,16 @@ jobs: PUBLISH_ARGS: "--plugin luet-cosign" COSIGN_FULCIO_URL: "https://v1.fulcio.sigstore.dev" steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-arm64.tar.gz -o go1.17.5.linux-arm64.tar.gz @@ -139,6 +165,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ diff --git a/.github/workflows/build-master-orange-x86_64.yaml b/.github/workflows/build-master-orange-x86_64.yaml index 3cfb90dae96..e41bd0deb25 100644 --- a/.github/workflows/build-master-orange-x86_64.yaml +++ b/.github/workflows/build-master-orange-x86_64.yaml @@ -19,13 +19,16 @@ jobs: PUSH_CACHE: true REPO_CACHE: quay.io/costoolkit/build-orange-cache steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-amd64.tar.gz -o go1.17.5.linux-amd64.tar.gz @@ -37,6 +40,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -80,6 +93,16 @@ jobs: name: build-orange-x86_64 path: build if-no-files-found: error + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true image-link-orange: runs-on: ubuntu-latest needs: publish-orange @@ -117,13 +140,16 @@ jobs: PUBLISH_ARGS: "--plugin luet-cosign" COSIGN_FULCIO_URL: "https://v1.fulcio.sigstore.dev" steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-amd64.tar.gz -o go1.17.5.linux-amd64.tar.gz @@ -135,6 +161,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ diff --git a/.github/workflows/build-nightly-blue-x86_64.yaml b/.github/workflows/build-nightly-blue-x86_64.yaml index dceae335ace..8cbeb5af655 100644 --- a/.github/workflows/build-nightly-blue-x86_64.yaml +++ b/.github/workflows/build-nightly-blue-x86_64.yaml @@ -15,7 +15,8 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow - - name: Release space from worker + - name: Release space from worker ♻ + if: always() run: | sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET @@ -38,6 +39,11 @@ jobs: PUSH_CACHE: false REPO_CACHE: quay.io/costoolkit/build-blue-cache steps: + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android + sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET - name: Install Go uses: actions/setup-go@v2 with: @@ -45,7 +51,8 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow - - name: Release space from worker + - name: Release space from worker ♻ + if: always() run: | sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET @@ -77,11 +84,21 @@ jobs: name: build-blue-x86_64 path: build if-no-files-found: error + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android + sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET raw-images-blue: runs-on: ubuntu-latest needs: - build-blue-x86_64 steps: + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android + sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET - name: Install OS deps run: | sudo apt-get update diff --git a/.github/workflows/build-nightly-green-x86_64.yaml b/.github/workflows/build-nightly-green-x86_64.yaml index 92a941bcb44..fd643bdb01d 100644 --- a/.github/workflows/build-nightly-green-x86_64.yaml +++ b/.github/workflows/build-nightly-green-x86_64.yaml @@ -15,7 +15,8 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow - - name: Release space from worker + - name: Release space from worker ♻ + if: always() run: | sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET @@ -38,6 +39,11 @@ jobs: PUSH_CACHE: false REPO_CACHE: quay.io/costoolkit/build-green-cache steps: + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android + sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET - name: Install Go uses: actions/setup-go@v2 with: @@ -45,7 +51,8 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow - - name: Release space from worker + - name: Release space from worker ♻ + if: always() run: | sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET @@ -77,6 +84,11 @@ jobs: name: build-green-x86_64 path: build if-no-files-found: error + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android + sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET iso-squashfs-green: runs-on: ubuntu-latest needs: build-green-x86_64 @@ -88,7 +100,8 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow - - name: Release space from worker + - name: Release space from worker ♻ + if: always() run: | sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET @@ -357,7 +370,8 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow - - name: Release space from worker + - name: Release space from worker ♻ + if: always() run: | sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET @@ -624,6 +638,11 @@ jobs: needs: - build-green-x86_64 steps: + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android + sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET - name: Install OS deps run: | sudo apt-get update diff --git a/.github/workflows/build-nightly-orange-x86_64.yaml b/.github/workflows/build-nightly-orange-x86_64.yaml index 473d3d288a3..b8f0cd78a0a 100644 --- a/.github/workflows/build-nightly-orange-x86_64.yaml +++ b/.github/workflows/build-nightly-orange-x86_64.yaml @@ -15,7 +15,8 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow - - name: Release space from worker + - name: Release space from worker ♻ + if: always() run: | sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET @@ -38,6 +39,11 @@ jobs: PUSH_CACHE: false REPO_CACHE: quay.io/costoolkit/build-orange-cache steps: + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android + sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET - name: Install Go uses: actions/setup-go@v2 with: @@ -45,7 +51,8 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow - - name: Release space from worker + - name: Release space from worker ♻ + if: always() run: | sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET @@ -77,11 +84,21 @@ jobs: name: build-orange-x86_64 path: build if-no-files-found: error + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android + sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET raw-images-orange: runs-on: ubuntu-latest needs: - build-orange-x86_64 steps: + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android + sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET - name: Install OS deps run: | sudo apt-get update diff --git a/.github/workflows/build-pr-blue-arm64.yaml b/.github/workflows/build-pr-blue-arm64.yaml index d14b3412c54..fb1ce2b5920 100644 --- a/.github/workflows/build-pr-blue-arm64.yaml +++ b/.github/workflows/build-pr-blue-arm64.yaml @@ -22,13 +22,16 @@ jobs: # For non x86_64 archs, skip the *-fips build as there are no golang releases in other arches SKIP_PACKAGES: "build/golang-fips toolchain-fips/yip toolchain-fips/luet-makeiso toolchain-fips/luet live/syslinux live/systemd-boot live/boot" steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-arm64.tar.gz -o go1.17.5.linux-arm64.tar.gz @@ -40,6 +43,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -68,3 +81,13 @@ jobs: name: build-blue-arm64 path: build if-no-files-found: error + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true diff --git a/.github/workflows/build-pr-blue-x86_64.yaml b/.github/workflows/build-pr-blue-x86_64.yaml index d0781106516..d0bf74c911b 100644 --- a/.github/workflows/build-pr-blue-x86_64.yaml +++ b/.github/workflows/build-pr-blue-x86_64.yaml @@ -24,13 +24,16 @@ jobs: PUSH_CACHE: false REPO_CACHE: quay.io/costoolkit/build-blue-cache steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-amd64.tar.gz -o go1.17.5.linux-amd64.tar.gz @@ -42,6 +45,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -70,3 +83,13 @@ jobs: name: build-blue-x86_64 path: build if-no-files-found: error + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true diff --git a/.github/workflows/build-pr-green-arm64.yaml b/.github/workflows/build-pr-green-arm64.yaml index 8da1a5a0c6a..2fe5ce95e09 100644 --- a/.github/workflows/build-pr-green-arm64.yaml +++ b/.github/workflows/build-pr-green-arm64.yaml @@ -22,13 +22,16 @@ jobs: # For non x86_64 archs, skip the *-fips build as there are no golang releases in other arches SKIP_PACKAGES: "build/golang-fips toolchain-fips/yip toolchain-fips/luet-makeiso toolchain-fips/luet live/syslinux live/systemd-boot live/boot" steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-arm64.tar.gz -o go1.17.5.linux-arm64.tar.gz @@ -40,6 +43,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -68,6 +81,16 @@ jobs: name: build-green-arm64 path: build if-no-files-found: error + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true iso-squashfs-green: runs-on: ubuntu-latest needs: build-green-arm64 @@ -79,6 +102,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -231,6 +264,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -381,10 +424,16 @@ jobs: needs: - build-green-arm64 steps: - - name: Cleanup + - name: Release space from worker ♻ + if: always() run: | sudo rm -rf build || true sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install OS deps run: | sudo apt-get update diff --git a/.github/workflows/build-pr-green-x86_64.yaml b/.github/workflows/build-pr-green-x86_64.yaml index 529aa1df3e9..1a54fc6eafa 100644 --- a/.github/workflows/build-pr-green-x86_64.yaml +++ b/.github/workflows/build-pr-green-x86_64.yaml @@ -24,13 +24,16 @@ jobs: PUSH_CACHE: false REPO_CACHE: quay.io/costoolkit/build-green-cache steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-amd64.tar.gz -o go1.17.5.linux-amd64.tar.gz @@ -42,6 +45,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -70,6 +83,16 @@ jobs: name: build-green-x86_64 path: build if-no-files-found: error + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true iso-squashfs-green: runs-on: ubuntu-latest needs: build-green-x86_64 @@ -81,6 +104,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -346,6 +379,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -609,10 +652,16 @@ jobs: needs: - build-green-x86_64 steps: - - name: Cleanup + - name: Release space from worker ♻ + if: always() run: | sudo rm -rf build || true sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install OS deps run: | sudo apt-get update diff --git a/.github/workflows/build-pr-orange-arm64.yaml b/.github/workflows/build-pr-orange-arm64.yaml index cba0160e66c..8accc63cd57 100644 --- a/.github/workflows/build-pr-orange-arm64.yaml +++ b/.github/workflows/build-pr-orange-arm64.yaml @@ -24,13 +24,16 @@ jobs: # For non x86_64 archs, skip the *-fips build as there are no golang releases in other arches SKIP_PACKAGES: "build/golang-fips toolchain-fips/yip toolchain-fips/luet-makeiso toolchain-fips/luet live/syslinux live/systemd-boot live/boot" steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-arm64.tar.gz -o go1.17.5.linux-arm64.tar.gz @@ -42,6 +45,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -70,3 +83,13 @@ jobs: name: build-orange-arm64 path: build if-no-files-found: error + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true diff --git a/.github/workflows/build-pr-orange-x86_64.yaml b/.github/workflows/build-pr-orange-x86_64.yaml index 66a28fad63a..8fe12741bcc 100644 --- a/.github/workflows/build-pr-orange-x86_64.yaml +++ b/.github/workflows/build-pr-orange-x86_64.yaml @@ -24,13 +24,16 @@ jobs: PUSH_CACHE: false REPO_CACHE: quay.io/costoolkit/build-orange-cache steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-amd64.tar.gz -o go1.17.5.linux-amd64.tar.gz @@ -42,6 +45,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -70,3 +83,13 @@ jobs: name: build-orange-x86_64 path: build if-no-files-found: error + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true diff --git a/.github/workflows/build-releases-blue-arm64.yaml b/.github/workflows/build-releases-blue-arm64.yaml index f643beb3b42..1b600972c37 100644 --- a/.github/workflows/build-releases-blue-arm64.yaml +++ b/.github/workflows/build-releases-blue-arm64.yaml @@ -21,13 +21,16 @@ jobs: # For non x86_64 archs, skip the *-fips build as there are no golang releases in other arches SKIP_PACKAGES: "build/golang-fips toolchain-fips/yip toolchain-fips/luet-makeiso toolchain-fips/luet live/syslinux live/systemd-boot live/boot" steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-arm64.tar.gz -o go1.17.5.linux-arm64.tar.gz @@ -39,6 +42,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -82,6 +95,16 @@ jobs: name: build-blue-arm64 path: build if-no-files-found: error + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true image-link-blue: runs-on: ubuntu-latest needs: publish-blue @@ -119,13 +142,16 @@ jobs: PUBLISH_ARGS: "--plugin luet-cosign" COSIGN_FULCIO_URL: "https://v1.fulcio.sigstore.dev" steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-arm64.tar.gz -o go1.17.5.linux-arm64.tar.gz @@ -137,6 +163,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ diff --git a/.github/workflows/build-releases-blue-x86_64.yaml b/.github/workflows/build-releases-blue-x86_64.yaml index e468edcd74d..da050874095 100644 --- a/.github/workflows/build-releases-blue-x86_64.yaml +++ b/.github/workflows/build-releases-blue-x86_64.yaml @@ -19,13 +19,16 @@ jobs: PUSH_CACHE: true REPO_CACHE: quay.io/costoolkit/build-blue-cache steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-amd64.tar.gz -o go1.17.5.linux-amd64.tar.gz @@ -37,6 +40,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -80,6 +93,16 @@ jobs: name: build-blue-x86_64 path: build if-no-files-found: error + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true image-link-blue: runs-on: ubuntu-latest needs: publish-blue @@ -117,13 +140,16 @@ jobs: PUBLISH_ARGS: "--plugin luet-cosign" COSIGN_FULCIO_URL: "https://v1.fulcio.sigstore.dev" steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-amd64.tar.gz -o go1.17.5.linux-amd64.tar.gz @@ -135,6 +161,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ diff --git a/.github/workflows/build-releases-green-arm64.yaml b/.github/workflows/build-releases-green-arm64.yaml index e728942fb5c..aee3bcd75d5 100644 --- a/.github/workflows/build-releases-green-arm64.yaml +++ b/.github/workflows/build-releases-green-arm64.yaml @@ -21,13 +21,16 @@ jobs: # For non x86_64 archs, skip the *-fips build as there are no golang releases in other arches SKIP_PACKAGES: "build/golang-fips toolchain-fips/yip toolchain-fips/luet-makeiso toolchain-fips/luet live/syslinux live/systemd-boot live/boot" steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-arm64.tar.gz -o go1.17.5.linux-arm64.tar.gz @@ -39,6 +42,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -82,6 +95,16 @@ jobs: name: build-green-arm64 path: build if-no-files-found: error + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true iso-squashfs-green: runs-on: ubuntu-latest needs: build-green-arm64 @@ -93,6 +116,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -245,6 +278,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -426,13 +469,16 @@ jobs: PUBLISH_ARGS: "--plugin luet-cosign" COSIGN_FULCIO_URL: "https://v1.fulcio.sigstore.dev" steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-arm64.tar.gz -o go1.17.5.linux-arm64.tar.gz @@ -444,6 +490,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -554,10 +610,16 @@ jobs: needs: - build-green-arm64 steps: - - name: Cleanup + - name: Release space from worker ♻ + if: always() run: | sudo rm -rf build || true sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install OS deps run: | sudo apt-get update diff --git a/.github/workflows/build-releases-green-x86_64.yaml b/.github/workflows/build-releases-green-x86_64.yaml index d7404a700e5..8a09ae51ca1 100644 --- a/.github/workflows/build-releases-green-x86_64.yaml +++ b/.github/workflows/build-releases-green-x86_64.yaml @@ -19,13 +19,16 @@ jobs: PUSH_CACHE: true REPO_CACHE: quay.io/costoolkit/build-green-cache steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-amd64.tar.gz -o go1.17.5.linux-amd64.tar.gz @@ -37,6 +40,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -80,6 +93,16 @@ jobs: name: build-green-x86_64 path: build if-no-files-found: error + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true iso-squashfs-green: runs-on: ubuntu-latest needs: build-green-x86_64 @@ -91,6 +114,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -356,6 +389,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -650,13 +693,16 @@ jobs: PUBLISH_ARGS: "--plugin luet-cosign" COSIGN_FULCIO_URL: "https://v1.fulcio.sigstore.dev" steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-amd64.tar.gz -o go1.17.5.linux-amd64.tar.gz @@ -668,6 +714,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -794,10 +850,16 @@ jobs: needs: - build-green-x86_64 steps: - - name: Cleanup + - name: Release space from worker ♻ + if: always() run: | sudo rm -rf build || true sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install OS deps run: | sudo apt-get update @@ -936,6 +998,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -962,6 +1034,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ diff --git a/.github/workflows/build-releases-orange-arm64.yaml b/.github/workflows/build-releases-orange-arm64.yaml index 7c3732a4475..7a36b335909 100644 --- a/.github/workflows/build-releases-orange-arm64.yaml +++ b/.github/workflows/build-releases-orange-arm64.yaml @@ -23,13 +23,16 @@ jobs: # For non x86_64 archs, skip the *-fips build as there are no golang releases in other arches SKIP_PACKAGES: "build/golang-fips toolchain-fips/yip toolchain-fips/luet-makeiso toolchain-fips/luet live/syslinux live/systemd-boot live/boot" steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-arm64.tar.gz -o go1.17.5.linux-arm64.tar.gz @@ -41,6 +44,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -84,6 +97,16 @@ jobs: name: build-orange-arm64 path: build if-no-files-found: error + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true image-link-orange: runs-on: ubuntu-latest needs: publish-orange @@ -121,13 +144,16 @@ jobs: PUBLISH_ARGS: "--plugin luet-cosign" COSIGN_FULCIO_URL: "https://v1.fulcio.sigstore.dev" steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-arm64.tar.gz -o go1.17.5.linux-arm64.tar.gz @@ -139,6 +165,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ diff --git a/.github/workflows/build-releases-orange-x86_64.yaml b/.github/workflows/build-releases-orange-x86_64.yaml index d907b2c67e3..211c31568f4 100644 --- a/.github/workflows/build-releases-orange-x86_64.yaml +++ b/.github/workflows/build-releases-orange-x86_64.yaml @@ -19,13 +19,16 @@ jobs: PUSH_CACHE: true REPO_CACHE: quay.io/costoolkit/build-orange-cache steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-amd64.tar.gz -o go1.17.5.linux-amd64.tar.gz @@ -37,6 +40,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/ @@ -80,6 +93,16 @@ jobs: name: build-orange-x86_64 path: build if-no-files-found: error + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true image-link-orange: runs-on: ubuntu-latest needs: publish-orange @@ -117,13 +140,16 @@ jobs: PUBLISH_ARGS: "--plugin luet-cosign" COSIGN_FULCIO_URL: "https://v1.fulcio.sigstore.dev" steps: - - run: | + - name: Release space from worker ♻ + if: always() + run: | sudo rm -rf build || true sudo rm -rf bin || true sudo rm /usr/bin/luet || true sudo rm -Rf /etc/luet/ || true sudo rm -Rf /var/tmp/luet || true sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install Go run: | curl -L https://golang.org/dl/go1.17.5.linux-amd64.tar.gz -o go1.17.5.linux-amd64.tar.gz @@ -135,6 +161,16 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --prune --unshallow + - name: Release space from worker ♻ + if: always() + run: | + sudo rm -rf build || true + sudo rm -rf bin || true + sudo rm /usr/bin/luet || true + sudo rm -Rf /etc/luet/ || true + sudo rm -Rf /var/tmp/luet || true + sudo rm -Rf /var/luet || true + docker system prune -f -a --volumes || true - name: Install CI plugins run: | sudo cp -rfv .github/plugins/* /usr/bin/