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