Fix CI/CD: use gitea:3000 Docker network hostname
Some checks failed
CI/CD Pipeline / test (push) Failing after 2s
CI/CD Pipeline / build-and-push (push) Has been skipped

Changed from 'server:3000' to 'gitea:3000' for internal Docker network access.
This commit is contained in:
bnair123
2025-12-27 19:02:25 +04:00
parent 41dea96b88
commit 38dca66a52

View File

@@ -10,6 +10,8 @@ on:
env: env:
REGISTRY: gitea.thefetagroup.com REGISTRY: gitea.thefetagroup.com
IMAGE_NAME: bnair/cryptobot IMAGE_NAME: bnair/cryptobot
# Internal Docker network URL for git operations
GITEA_INTERNAL_URL: http://gitea:3000
jobs: jobs:
test: test:
@@ -17,7 +19,7 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
run: | 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 fetch origin ${{ github.sha }} --depth 1
git checkout ${{ github.sha }} git checkout ${{ github.sha }}
@@ -59,7 +61,7 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
run: | 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 fetch origin ${{ github.ref_name }} --depth 1
git checkout ${{ github.ref_name }} git checkout ${{ github.ref_name }}