Check out from our own Gitea instead of actions/checkout
The runner host failed to resolve github.com; deploys must not depend on internet DNS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5016ed6996
commit
26fa7732e9
4 files changed
+27
-4
No files matched your search
@@ -24,8 +24,16 @@ jobs:
|
||||
# Liegt auf dem Host, außerhalb von Git (Vorlage: deploy/env/dev.env.example).
|
||||
MINDNET_ENV_FILE: /home/llmadmin/docker/mindnet-dev/dev.env
|
||||
steps:
|
||||
# Ohne actions/checkout: kein Abruf von github.com (DNS/Internet auf dem Host
|
||||
# nicht nötig). Holt genau den Commit des Pushes vom eigenen Gitea, mit Job-Token.
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git init -q .
|
||||
git -c http.extraHeader="Authorization: token ${{ github.token }}" fetch -q --depth 1 "${{ github.server_url }}/${{ github.repository }}.git" "${{ github.sha }}"
|
||||
git checkout -q --force FETCH_HEAD
|
||||
git clean -q -ffdx
|
||||
git log -1 --format='Checkout %H %s'
|
||||
|
||||
- name: Host vorbereiten (synthetischer Test-Vault, dev.env beim ersten Lauf)
|
||||
run: |
|
||||
|
||||
Reference in new issue
Block a user