From 41dea96b883efbcbe853474f7eba7a1b1b751002 Mon Sep 17 00:00:00 2001 From: bnair123 Date: Sat, 27 Dec 2025 18:58:04 +0400 Subject: [PATCH] Fix CI/CD: use direct git clone with external URL Runner was failing to connect to internal 'server:3000' hostname. Now uses public https://gitea.thefetagroup.com URL directly. --- .gitea/workflows/ci-cd.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci-cd.yaml b/.gitea/workflows/ci-cd.yaml index 376625b..9309d1b 100644 --- a/.gitea/workflows/ci-cd.yaml +++ b/.gitea/workflows/ci-cd.yaml @@ -16,7 +16,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v4 + run: | + git clone --depth 1 https://gitea.thefetagroup.com/bnair/CryptoTrading.git . + git fetch origin ${{ github.sha }} --depth 1 + git checkout ${{ github.sha }} - name: Set up Python uses: actions/setup-python@v5 @@ -55,14 +58,17 @@ jobs: if: startsWith(github.ref, 'refs/tags/v') steps: - name: Checkout code - uses: actions/checkout@v4 + run: | + git clone --depth 1 https://gitea.thefetagroup.com/bnair/CryptoTrading.git . + git fetch origin ${{ github.ref_name }} --depth 1 + git checkout ${{ github.ref_name }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Extract version from tag id: version - run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT + run: echo "VERSION=${{ github.ref_name }}" >> $GITHUB_OUTPUT - name: Login to Gitea Container Registry uses: docker/login-action@v3