From 55358f75f1384f3c2a6fe2d6b412b11a23edbfa3 Mon Sep 17 00:00:00 2001 From: UO264802 <71766858+UO264802@users.noreply.github.com> Date: Thu, 5 May 2022 03:08:10 +0200 Subject: [PATCH] =?UTF-8?q?API=5FURI=20a=C3=B1adido?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/asw2122.yml | 1 + webapp/Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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