From 098622c1283aaac4ffd65704398d31945013e94b Mon Sep 17 00:00:00 2001 From: Julian Mutter Date: Thu, 11 Jun 2026 20:52:15 +0200 Subject: [PATCH] Try changing mtu to allow uploading of the docker container --- .gitea/workflows/build.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index bea2994..064591a 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -21,6 +21,14 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + # --- Lower MTU to prevent packet drops on large Nix layers --- + - name: Adjust MTU to fix Docker push timeouts + run: | + # Find the active network interface and lower its MTU + INTERFACE=$(ip route | grep default | awk '{print $5}') + echo "Lowering MTU on interface: $INTERFACE" + sudo ip link set dev $INTERFACE mtu 1400 + # Gitea Actions automatically provides a token that can push to its own registry - name: Log in to the Container registry uses: docker/login-action@v3