Skip to content

Commit

Permalink
Add react app env (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
lyncasterc authored Mar 31, 2024
1 parent c9e40d2 commit 96f70c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
- name: Build and push
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku container:push -a instaclone web
run: heroku container:push web -a instaclone --arg REACT_APP_SOCKET_URL=${{ secrets.REACT_APP_SOCKET_URL }}
- name: Release
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
FROM node:20 as build-stage
WORKDIR /app

ARG REACT_APP_SOCKET_URL

ENV REACT_APP_SOCKET_URL=$REACT_APP_SOCKET_URL

# copying the all the frontend and backend code
COPY frontend ./frontend
COPY backend ./backend
Expand Down

0 comments on commit 96f70c6

Please sign in to comment.