From 76236c3f113d0e1c412738e5ec434688d41e757b Mon Sep 17 00:00:00 2001 From: Jay Date: Sat, 6 Jan 2024 00:58:19 -0500 Subject: [PATCH] Update docker-image.yml --- .github/workflows/docker-image.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 85da38e..aa14c11 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -16,9 +16,10 @@ jobs: - name: Checkout backend code uses: actions/checkout@v3 with: - path: 'backend' + context: './backend' + file: './backend/Dockerfile' - name: Build the Docker image for backend - run: docker build ./backend --file backend/Dockerfile --tag backend-image-name:$(date +%s) . + run: docker build --tag backend-image-name:$(date +%s) . frontend-build: @@ -28,6 +29,7 @@ jobs: - name: Checkout frontend code uses: actions/checkout@v3 with: - path: 'frontend' + context: './frontend' + file: './frontend/Dockerfile' - name: Build the Docker image for frontend - run: docker build ./frontend --file frontend/Dockerfile --tag frontend-image-name:$(date +%s) . + run: docker build --tag frontend-image-name:$(date +%s) .