Skip to content

Commit f2b9669

Browse files
committed
Deploy CI CD on Test Server
1 parent ce4d8d7 commit f2b9669

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
- name: Build and push Docker images
2626
run: |
27-
docker build -t ${{ secrets.DOCKER_USERNAME }}/ecommerce-backend:latest ./Backend/EcommerceInventory
27+
docker build -t ${{ secrets.DOCKER_USERNAME }}/ecommerce-backend:latest .
2828
docker push ${{ secrets.DOCKER_USERNAME }}/ecommerce-backend:latest
2929
3030
- name: Deploy to EC2

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Stage 1: Build frontend
2-
FROM node:14 as build-stage
2+
FROM node:18 as build-stage
33

44
# Set working directory for frontend
55
WORKDIR /app
@@ -23,7 +23,7 @@ RUN ls -l /app
2323
RUN npm run build
2424

2525
# Stage 2: Build Django backend
26-
FROM python:3.9
26+
FROM python:3.11.0
2727

2828
# Set environment variables
2929
ENV PYTHONDONTWRITEBYTECODE 1

0 commit comments

Comments
 (0)