Skip to content

Commit

Permalink
Back to another version
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiollende committed Apr 28, 2024
1 parent 05429e7 commit b4b6971
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,12 @@ jobs:
- uses: actions/checkout@v4
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
env:
WEBAPP_URI: http://${{ secrets.DEPLOY_HOST }}:3000
with:
name: arquisoft/wiq_en3a/gatewayservice
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
workdir: gatewayservice
buildargs: WEBAPP_URI

deploy:
name: Deploy over SSH
Expand All @@ -121,6 +118,8 @@ jobs:
steps:
- name: Deploy over SSH
uses: fifsky/ssh-action@master
env:
API_URI: ${{ secrets.DEPLOY_HOST }}
with:
host: ${{ secrets.DEPLOY_HOST }}
user: ${{ secrets.DEPLOY_USER }}
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ services:
context: ./webapp
environment:
- REACT_APP_API_ENDPOINT=${API_URI}
depends_on:
- gatewayservice
ports:
- "3000:3000"

Expand Down
7 changes: 3 additions & 4 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,11 @@
"zustand": "^4.5.2"
},
"scripts": {
"start": "set HTTP=true && react-scripts start",
"build": "set HTTP=true && react-scripts build",
"start": "react-scripts start",
"build": "react-scripts build",
"prod": "serve -s build",
"test": "react-scripts test --transformIgnorePatterns 'node_modules/(?!axios)/'",
"test:e2e": "cross-env START_SERVER_AND_TEST_INSECURE=1 PORT=3000 npm run rune2etests",
"rune2etests": "start-server-and-test 'node e2e/test-environment-setup.js' http://localhost:8000/health prod 3000 \"cd e2e && jest\"",
"test:e2e": "start-server-and-test 'node e2e/test-environment-setup.js' http://localhost:8000/health prod 3000 \"cd e2e && jest\"",
"eject": "react-scripts eject"
},
"eslintConfig": {
Expand Down

0 comments on commit b4b6971

Please sign in to comment.