ci: use internal cluster service for docker registry to fix 502
CI/CD Pipeline / quality-and-security (push) Successful in 8s
CI/CD Pipeline / build-and-push (push) Failing after 6s
CI/CD Pipeline / deploy (push) Has been skipped

This commit is contained in:
2026-07-02 09:18:18 +00:00
parent 6f89b80f6c
commit 5b032053fc
+7 -7
View File
@@ -41,19 +41,19 @@ jobs:
git checkout ${{ gitea.sha }}
- name: Build API Docker Image
run: docker build --network host -t git.88.96.58.76.nip.io/khalil/tamagotchi-api:${{ gitea.sha }} ./api
run: docker build --network host -t gitea-http.gitea.svc.cluster.local:3000/khalil/tamagotchi-api:${{ gitea.sha }} ./api
- name: Build Frontend Docker Image
run: docker build --network host -t git.88.96.58.76.nip.io/khalil/tamagotchi-frontend:${{ gitea.sha }} ./frontend
run: docker build --network host -t gitea-http.gitea.svc.cluster.local:3000/khalil/tamagotchi-frontend:${{ gitea.sha }} ./frontend
- name: Login to Gitea Registry
run: echo "${{ secrets.GITEA_TOKEN }}" | docker login git.88.96.58.76.nip.io -u ${{ gitea.repository_owner }} --password-stdin
run: echo "${{ secrets.GITEA_TOKEN }}" | docker login gitea-http.gitea.svc.cluster.local:3000 -u ${{ gitea.repository_owner }} --password-stdin
- name: Push API Image
run: docker push git.88.96.58.76.nip.io/khalil/tamagotchi-api:${{ gitea.sha }}
run: docker push gitea-http.gitea.svc.cluster.local:3000/khalil/tamagotchi-api:${{ gitea.sha }}
- name: Push Frontend Image
run: docker push git.88.96.58.76.nip.io/khalil/tamagotchi-frontend:${{ gitea.sha }}
run: docker push gitea-http.gitea.svc.cluster.local:3000/khalil/tamagotchi-frontend:${{ gitea.sha }}
deploy:
needs: build-and-push
@@ -69,8 +69,8 @@ jobs:
- name: Update ArgoCD Manifest
run: |
sed -i "s|image: .*tamagotchi-api:.*|image: git.88.96.58.76.nip.io/khalil/tamagotchi-api:${{ gitea.sha }}|g" k8s.yaml
sed -i "s|image: .*tamagotchi-frontend:.*|image: git.88.96.58.76.nip.io/khalil/tamagotchi-frontend:${{ gitea.sha }}|g" k8s.yaml
sed -i "s|image: .*tamagotchi-api:.*|image: gitea-http.gitea.svc.cluster.local:3000/khalil/tamagotchi-api:${{ gitea.sha }}|g" k8s.yaml
sed -i "s|image: .*tamagotchi-frontend:.*|image: gitea-http.gitea.svc.cluster.local:3000/khalil/tamagotchi-frontend:${{ gitea.sha }}|g" k8s.yaml
- name: Push Updated Manifest
run: |