diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index ef3c71a..c7df159 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -33,13 +33,13 @@ jobs: # Step 4: Build the Backend Docker image - name: Build Backend Docker image run: | - docker build -t jonafoll/backend:${{ github.sha }} ./backend + docker build --network=host -t jonafoll/backend:${{ github.sha }} ./backend docker tag jonafoll/backend:${{ github.sha }} your-username/backend:latest # Step 5: Build the Frontend Docker image - name: Build Frontend Docker image run: | - docker build -t your-username/frontend:${{ github.sha }} ./frontend + docker build --network=host -t your-username/frontend:${{ github.sha }} ./frontend docker tag your-username/frontend:${{ github.sha }} your-username/frontend:latest # Step 6: Push the Backend Docker image to Docker Hub