mirror of
https://github.com/rclone/rclone.git
synced 2024-11-28 19:34:55 +01:00
build: fix docker beta build running out of space
This removes some unused SDKs from the build machine to free some space up before building. It also adds some lines to show the free space.
This commit is contained in:
parent
c04657cd4c
commit
d3ce795c30
@ -10,6 +10,15 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Build image job
|
name: Build image job
|
||||||
steps:
|
steps:
|
||||||
|
- name: Free some space
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
df -h .
|
||||||
|
# Remove android SDK
|
||||||
|
sudo rm -rf /usr/local/lib/android || true
|
||||||
|
# Remove .net runtime
|
||||||
|
sudo rm -rf /usr/share/dotnet || true
|
||||||
|
df -h .
|
||||||
- name: Checkout master
|
- name: Checkout master
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@ -42,7 +51,10 @@ jobs:
|
|||||||
# See https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
|
# See https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
|
||||||
# for more detailed information.
|
# for more detailed information.
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Show disk usage
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
df -h .
|
||||||
- name: Build and publish image
|
- name: Build and publish image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
@ -54,8 +66,12 @@ jobs:
|
|||||||
rclone/rclone:beta
|
rclone/rclone:beta
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6
|
platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6
|
||||||
cache-from: type=gha
|
cache-from: type=gha, scope=${{ github.workflow }}
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha, mode=max, scope=${{ github.workflow }}
|
||||||
provenance: false
|
provenance: false
|
||||||
# Eventually cache will need to be cleared if builds more frequent than once a week
|
# Eventually cache will need to be cleared if builds more frequent than once a week
|
||||||
# https://github.com/docker/build-push-action/issues/252
|
# https://github.com/docker/build-push-action/issues/252
|
||||||
|
- name: Show disk usage
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
df -h .
|
||||||
|
Loading…
Reference in New Issue
Block a user