Compare commits

..

2 Commits

Author SHA1 Message Date
bnair123
38dca66a52 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.
2025-12-27 19:02:25 +04:00
bnair123
41dea96b88 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.
2025-12-27 18:58:04 +04:00

View File

@@ -10,13 +10,18 @@ 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:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
run: |
git clone --depth 1 ${{ env.GITEA_INTERNAL_URL }}/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 +60,17 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Checkout code
uses: actions/checkout@v4
run: |
git clone --depth 1 ${{ env.GITEA_INTERNAL_URL }}/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