Skip to content

Commit

Permalink
Added env variable to dockerfile and ci-cd workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danishkhan24 committed Aug 31, 2024
1 parent af1e7ac commit febe22b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- name: Build and Push Frontend Docker Image
run: |
docker build -t ${{ secrets.FRONTEND_REPO }}:latest ./klipbored-frontend
docker build --build-arg AWS_REGION=${{ secrets.AWS_REGION }} -t ${{ secrets.FRONTEND_REPO }}:latest ./klipbored-frontend
docker push ${{ secrets.FRONTEND_REPO }}:latest
build_and_push_backend:
Expand Down
4 changes: 4 additions & 0 deletions klipbored-backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Use the official Node.js 18 image as the base image
FROM node:18 AS build

# Declare the build argument
ARG AWS_REGION
ENV AWS_REGION=${AWS_REGION}

# Set the working directory in the container
WORKDIR /app

Expand Down

0 comments on commit febe22b

Please sign in to comment.