From ebe3abdbb36e48ed70613f39a2d7742e7789462b Mon Sep 17 00:00:00 2001 From: Jonathan Inge Arvesen Folland Date: Mon, 3 Mar 2025 22:13:37 +0100 Subject: [PATCH] Update build-docker.yml --- .github/workflows/build-docker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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