Try to use nixos host runner
Build and Publish Runner Image / build-and-push (push) Failing after 6m1s

This commit is contained in:
2026-06-11 21:02:15 +02:00
parent 098622c128
commit ac9fa93a2d
+1 -9
View File
@@ -16,19 +16,11 @@ env:
jobs: jobs:
build-and-push: build-and-push:
# We use the standard ubuntu-latest to build our custom runner # We use the standard ubuntu-latest to build our custom runner
runs-on: ubuntu-latest runs-on: nixos
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 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 # Gitea Actions automatically provides a token that can push to its own registry
- name: Log in to the Container registry - name: Log in to the Container registry
uses: docker/login-action@v3 uses: docker/login-action@v3