ci: use internal cluster service for docker registry to fix 502
This commit is contained in:
@@ -41,19 +41,19 @@ jobs:
|
|||||||
git checkout ${{ gitea.sha }}
|
git checkout ${{ gitea.sha }}
|
||||||
|
|
||||||
- name: Build API Docker Image
|
- 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
|
- 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
|
- 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
|
- 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
|
- 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:
|
deploy:
|
||||||
needs: build-and-push
|
needs: build-and-push
|
||||||
@@ -69,8 +69,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Update ArgoCD Manifest
|
- name: Update ArgoCD Manifest
|
||||||
run: |
|
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-api:.*|image: gitea-http.gitea.svc.cluster.local:3000/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-frontend:.*|image: gitea-http.gitea.svc.cluster.local:3000/khalil/tamagotchi-frontend:${{ gitea.sha }}|g" k8s.yaml
|
||||||
|
|
||||||
- name: Push Updated Manifest
|
- name: Push Updated Manifest
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user