Fix CI: Add --network=host to docker build
CI/CD Pipeline / test (push) Successful in 1m49s
CI/CD Pipeline / scan (push) Successful in 19s
CI/CD Pipeline / build-push-deploy (push) Failing after 26s

This commit is contained in:
khalil
2026-07-04 11:35:57 +00:00
parent 34fe1eb2b7
commit 73bce74b8c
+2 -2
View File
@@ -59,12 +59,12 @@ jobs:
- name: Build and Push API - name: Build and Push API
run: | run: |
docker build -t git.khalilaliouich.com/${{ github.repository_owner }}/tamagotchi-api:${{ github.sha }} ./api docker build --network=host -t git.khalilaliouich.com/${{ github.repository_owner }}/tamagotchi-api:${{ github.sha }} ./api
docker push git.khalilaliouich.com/${{ github.repository_owner }}/tamagotchi-api:${{ github.sha }} docker push git.khalilaliouich.com/${{ github.repository_owner }}/tamagotchi-api:${{ github.sha }}
- name: Build and Push Frontend - name: Build and Push Frontend
run: | run: |
docker build -t git.khalilaliouich.com/${{ github.repository_owner }}/tamagotchi-frontend:${{ github.sha }} ./frontend docker build --network=host -t git.khalilaliouich.com/${{ github.repository_owner }}/tamagotchi-frontend:${{ github.sha }} ./frontend
docker push git.khalilaliouich.com/${{ github.repository_owner }}/tamagotchi-frontend:${{ github.sha }} docker push git.khalilaliouich.com/${{ github.repository_owner }}/tamagotchi-frontend:${{ github.sha }}
- name: Update Kubernetes Manifests - name: Update Kubernetes Manifests