Skip to content

Commit

Permalink
Added deployment package in deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sikehish committed Jun 9, 2024
1 parent 86510c5 commit 73841e9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Zip deployment package
run: |
zip -r deployment_package.zip . -x ".git/*" "frontend/node_modules/*" "backend/node_modules/*"
- name: Deploy to Elastic Beanstalk
uses: einaregilsson/beanstalk-deploy@v21
with:
Expand All @@ -53,4 +57,4 @@ jobs:
region: ${{ secrets.EB_REGION }}
version_label: "version-${{ github.run_number }}" #OR
use_existing_version_if_available: true
deployment_package: docker-compose.yml
deployment_package: deployment_package.zip
3 changes: 1 addition & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
FROM node:latest
WORKDIR /app
COPY package.json ./
# COPY package*.json ./
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
Expand Down
3 changes: 1 addition & 2 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
FROM node:latest as build
WORKDIR /app
# COPY package*.json ./
COPY package.json ./
COPY package*.json ./
RUN npm install
COPY . .

Expand Down

0 comments on commit 73841e9

Please sign in to comment.