Skip to content

Commit

Permalink
chore: .env in github action
Browse files Browse the repository at this point in the history
Co-authored-by: Gonzalo Suárez Losada <[email protected]>
  • Loading branch information
Toto-hitori committed Mar 11, 2024
1 parent 762e25e commit 1f2af04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ jobs:
packages: write
needs: [ e2e-tests ]
steps:

- uses: actions/checkout@v4

- name: Create .env file
run: echo "REACT_APP_API_ENDPOINT=${{ secrets.DEPLOY_HOST }}:8080" > webapp/.env

- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
env:
Expand Down
2 changes: 0 additions & 2 deletions webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ WORKDIR /app
#Install the dependencies
RUN npm install

ARG REACT_APP_API_ENDPOINT
RUN echo "REACT_APP_API_ENDPOINT=$REACT_APP_API_ENDPOINT" > .env
#Create an optimized version of the webapp
RUN npm run build
RUN npm install serve
Expand Down

0 comments on commit 1f2af04

Please sign in to comment.