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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user