Skip to content

Commit

Permalink
feat: implemetned env variable from secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
jingleMyBells committed Aug 30, 2023
1 parent d2fa42d commit 5a4eafa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pr_closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
env:
SERVER_ENV: ${{ secrets.REACT_APP_SERVER_TYPE_PROD }}
- name: Login to Docker
uses: docker/login-action@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM node:13.12.0-alpine as build
ARG SERVER_ENV
ENV REACT_APP_SERVER_TYPE=$SERVER_ENV
WORKDIR /app
COPY package*.json ./
RUN npm install
Expand Down

0 comments on commit 5a4eafa

Please sign in to comment.