Skip to content

Commit

Permalink
More changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiollende committed Mar 21, 2024
1 parent 8466b9c commit 76cba65
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
- uses: actions/checkout@v4

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

- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
env:
REACT_APP_API_ENDPOINT: http://${{ secrets.DEPLOY_HOST }}:8080
REACT_APP_API_ENDPOINT: http://${{ secrets.DEPLOY_HOST }}:8000
teamname: wiq_en3a
with:
name: arquisoft/wiq_en3a/webapp
Expand Down Expand Up @@ -86,5 +86,5 @@ jobs:
wget https://raw.githubusercontent.com/arquisoft/wiq_en3a/master/docker-compose.yml -O docker-compose.yml
wget https://raw.githubusercontent.com/arquisoft/wiq_en3a/master/.envç
echo "API_URI=http://${{ secrets.DEPLOY_HOST }}:8000" >> .env
docker compose down
docker compose --profile prod down
docker compose --profile prod up -d --pull always
1 change: 0 additions & 1 deletion webapp/.env
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
REACT_APP_API_ENDPOINT=http://localhost:8000
3 changes: 0 additions & 3 deletions webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ WORKDIR /app
#Install the dependencies
RUN npm install

ARG API_URI="http://localhost:8000"
ENV REACT_APP_API_ENDPOINT=$API_URI

#Create an optimized version of the webapp
RUN npm run build
RUN npm install serve
Expand Down

0 comments on commit 76cba65

Please sign in to comment.