diff --git a/.github/workflows/asw2122.yml b/.github/workflows/asw2122.yml index 191fe29..071b732 100644 --- a/.github/workflows/asw2122.yml +++ b/.github/workflows/asw2122.yml @@ -59,6 +59,7 @@ jobs: password: ${{ secrets.DOCKER_PUSH_TOKEN }} registry: ghcr.io workdir: webapp + buildargs: API_URI docker-push-restapi: name: Push restapi Docker Image to GitHub Packages runs-on: ubuntu-latest diff --git a/webapp/Dockerfile b/webapp/Dockerfile index c504ae3..2a0945c 100644 --- a/webapp/Dockerfile +++ b/webapp/Dockerfile @@ -6,8 +6,8 @@ WORKDIR /app RUN npm install #Create an optimized version of the webapp -#ARG API_URI="http://localhost:5000/api" -ARG API_URI="54.242.225.248:5000/api" +ARG API_URI="http://localhost:5000/api" +#ARG API_URI="54.242.225.248:5000/api" ENV REACT_APP_API_URI=$API_URI RUN npm run build