Use a full fetch in CI: Gitea fails to pack a shallow clone
actions/checkout defaults to depth=1, and Gitea aborted generating that pack with a bad pack header protocol error on every retry, failing the run before any image was built. Same fix already applied on the server repo; applied here to all four workflows so the edge-node, op25 and icecast images can build. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
87633ab50d
commit
5ff1089551
@@ -16,7 +16,11 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CONTAINER_NAME: edge-node
|
CONTAINER_NAME: edge-node
|
||||||
steps:
|
steps:
|
||||||
|
# Full fetch: Gitea fails to pack the default depth=1 shallow clone
|
||||||
|
# ("bad pack header"). Don't set this back to a shallow fetch.
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- uses: docker/setup-qemu-action@v3
|
- uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,11 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CONTAINER_NAME: icecast
|
CONTAINER_NAME: icecast
|
||||||
steps:
|
steps:
|
||||||
|
# Full fetch: Gitea fails to pack the default depth=1 shallow clone
|
||||||
|
# ("bad pack header"). Don't set this back to a shallow fetch.
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- uses: docker/setup-qemu-action@v3
|
- uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,11 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CONTAINER_NAME: op25-client
|
CONTAINER_NAME: op25-client
|
||||||
steps:
|
steps:
|
||||||
|
# Full fetch: Gitea fails to pack the default depth=1 shallow clone
|
||||||
|
# ("bad pack header"). Don't set this back to a shallow fetch.
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- uses: docker/setup-qemu-action@v3
|
- uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,11 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
working-directory: drb-edge-node
|
working-directory: drb-edge-node
|
||||||
steps:
|
steps:
|
||||||
|
# Full fetch: Gitea fails to pack the default depth=1 shallow clone
|
||||||
|
# ("bad pack header"). Don't set this back to a shallow fetch.
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: python3 -m pip install --break-system-packages -r requirements.txt pytest
|
run: python3 -m pip install --break-system-packages -r requirements.txt pytest
|
||||||
@@ -22,7 +26,11 @@ jobs:
|
|||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
# Full fetch: Gitea fails to pack the default depth=1 shallow clone
|
||||||
|
# ("bad pack header"). Don't set this back to a shallow fetch.
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user