ci: use gitea-http-ci ClusterIP service for reliable clone
This commit is contained in:
@@ -9,12 +9,11 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:20-alpine
|
||||
options: --dns 10.43.0.10
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
run: |
|
||||
apk add --no-cache git
|
||||
git clone http://gitea-http.gitea.svc.cluster.local:3000/${{ gitea.repository }}.git .
|
||||
git clone http://gitea-http-ci.gitea.svc.cluster.local:3000/${{ gitea.repository }}.git .
|
||||
git checkout ${{ gitea.sha }}
|
||||
|
||||
- name: Install dependencies (API)
|
||||
@@ -32,7 +31,7 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
run: |
|
||||
git clone http://gitea-http.gitea.svc.cluster.local:3000/${{ gitea.repository }}.git .
|
||||
git clone http://gitea-http-ci.gitea.svc.cluster.local:3000/${{ gitea.repository }}.git .
|
||||
git checkout ${{ gitea.sha }}
|
||||
|
||||
- name: Build API Docker Image
|
||||
@@ -56,7 +55,7 @@ jobs:
|
||||
steps:
|
||||
- name: Clone GitOps Repo
|
||||
run: |
|
||||
git clone http://gitea-http.gitea.svc.cluster.local:3000/khalil/tamagotchi-gitops.git .
|
||||
git clone http://gitea-http-ci.gitea.svc.cluster.local:3000/khalil/tamagotchi-gitops.git .
|
||||
git config user.name "Gitea Actions"
|
||||
git config user.email "actions@gitea.local"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user