ci: add --network host to docker build to fix MTU/ECONNRESET
CI/CD Pipeline / quality-and-security (push) Successful in 8s
CI/CD Pipeline / build-and-push (push) Failing after 13s
CI/CD Pipeline / deploy (push) Has been skipped

This commit is contained in:
2026-07-02 09:07:36 +00:00
parent 02514b7f9c
commit f94aa15f60
+2 -2
View File
@@ -41,10 +41,10 @@ jobs:
git checkout ${{ gitea.sha }} git checkout ${{ gitea.sha }}
- name: Build API Docker Image - name: Build API Docker Image
run: docker build -t git.88.96.58.76.nip.io/khalil/tamagotchi-api:${{ gitea.sha }} ./api run: docker build --network host -t git.88.96.58.76.nip.io/khalil/tamagotchi-api:${{ gitea.sha }} ./api
- name: Build Frontend Docker Image - name: Build Frontend Docker Image
run: docker build -t git.88.96.58.76.nip.io/khalil/tamagotchi-frontend:${{ gitea.sha }} ./frontend run: docker build --network host -t git.88.96.58.76.nip.io/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 git.88.96.58.76.nip.io -u ${{ gitea.repository_owner }} --password-stdin