Skip to content

Commit

Permalink
Changed workflow and dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
UO282476 authored and UO282476 committed May 2, 2023
1 parent ded1120 commit 98a6493
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/lomap_en1a.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,15 @@ jobs:
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
env:
host: ${{ secrets.HOST_NAME }}
HOST_NAME: ${{ secrets.HOST_NAME }}
API_URI: https://${{ secrets.HOST_NAME }}:5443
with:
name: arquisoft/lomap_en1a/webapp
username: ${{ github.actor }}
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
registry: ghcr.io
workdir: webapp
buildargs: API_URI
buildargs: HOST_NAME
docker-push-restapi:
name: Push restapi Docker Image to GitHub Packages
runs-on: ubuntu-latest
Expand All @@ -81,7 +82,7 @@ jobs:
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
env:
API_URI: https://${{ secrets.HOST_NAME }}:5443/api
HOST_NAME: ${{ secrets.HOST_NAME }}
with:
name: arquisoft/lomap_en1a/restapi
username: ${{ github.actor }}
Expand Down
4 changes: 2 additions & 2 deletions restapi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKDIR /app
#Install the dependencies
RUN npm install

ARG host="20.13.141.12"
ENV host=$host
ARG HOST_NAME="localhost"
ENV host=$HOST_NAME

CMD [ "npm", "start" ]
4 changes: 2 additions & 2 deletions webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ WORKDIR /app
#Install the dependencies
RUN npm install

ARG API_URI="https://20.13.141.12:5443/api"
ARG API_URI="https://localhost/api"
ENV REACT_APP_API_URI=$API_URI

ARG host="20.13.141.12"
ARG host="localhost"
ENV host=$host

#Create an optimized version of the webapp
Expand Down

0 comments on commit 98a6493

Please sign in to comment.