From 38dca66a5264d35f5ac639ab8535c9050ad06388 Mon Sep 17 00:00:00 2001 From: bnair123 Date: Sat, 27 Dec 2025 19:02:25 +0400 Subject: [PATCH] Fix CI/CD: use gitea:3000 Docker network hostname Changed from 'server:3000' to 'gitea:3000' for internal Docker network access. --- .gitea/workflows/ci-cd.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci-cd.yaml b/.gitea/workflows/ci-cd.yaml index 9309d1b..8176565 100644 --- a/.gitea/workflows/ci-cd.yaml +++ b/.gitea/workflows/ci-cd.yaml @@ -10,6 +10,8 @@ on: env: REGISTRY: gitea.thefetagroup.com IMAGE_NAME: bnair/cryptobot + # Internal Docker network URL for git operations + GITEA_INTERNAL_URL: http://gitea:3000 jobs: test: @@ -17,7 +19,7 @@ jobs: steps: - name: Checkout code run: | - git clone --depth 1 https://gitea.thefetagroup.com/bnair/CryptoTrading.git . + git clone --depth 1 ${{ env.GITEA_INTERNAL_URL }}/bnair/CryptoTrading.git . git fetch origin ${{ github.sha }} --depth 1 git checkout ${{ github.sha }} @@ -59,7 +61,7 @@ jobs: steps: - name: Checkout code run: | - git clone --depth 1 https://gitea.thefetagroup.com/bnair/CryptoTrading.git . + git clone --depth 1 ${{ env.GITEA_INTERNAL_URL }}/bnair/CryptoTrading.git . git fetch origin ${{ github.ref_name }} --depth 1 git checkout ${{ github.ref_name }}