diff --git a/.gitea/workflows/build-release.yaml b/.gitea/workflows/build-release.yaml index b472350..a531337 100644 --- a/.gitea/workflows/build-release.yaml +++ b/.gitea/workflows/build-release.yaml @@ -9,8 +9,15 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout Code - uses: actions/checkout@v4 + - name: Checkout Code (Manuell & Sicher) + run: | + git init + # Nutzt die direkte, interne Docker-Verbindung zum Gitea-Container: + git remote add origin http://server:3000/${{ github.repository }}.git + git config --global credential.helper 'store --file=.git/credentials' + echo "http://x-access-token:${{ secrets.GITEA_TOKEN }}@server:3000" > .git/credentials + git fetch --depth=1 origin ${{ github.ref }} + git checkout FETCH_HEAD - name: Java einrichten uses: actions/setup-java@v4