From ef3ac285c86d20d068d3dc97501077fc0ae7a01c Mon Sep 17 00:00:00 2001 From: aMetallurgist Date: Tue, 19 Dec 2023 17:39:48 -0800 Subject: [PATCH] =?UTF-8?q?Fix=20App=20Health=20Check=20=F0=9F=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CI-CD-pipeline.yml | 3 ++- app/Dockerfile | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI-CD-pipeline.yml b/.github/workflows/CI-CD-pipeline.yml index 924a207b..95bc6a15 100644 --- a/.github/workflows/CI-CD-pipeline.yml +++ b/.github/workflows/CI-CD-pipeline.yml @@ -52,7 +52,8 @@ jobs: - name: Build Production Image run: | IMAGE_NAME=ghcr.io/hackforla/homeuniteus/app:latest - docker build --build-arg VITE_HUU_API_BASE_URL=http://127.0.0.1:8080/api --build-arg ENV_KEY=${{ secrets.HUU_EC2_SSH_KEY }} --target production --tag $IMAGE_NAME ./app + ENCODED_KEY=$(echo -n "${{ secrets.HUU_EC2_SSH_KEY }}" | base64) + docker build --build-arg VITE_HUU_API_BASE_URL=http://127.0.0.1:8080/api --build-arg ENV_KEY=$ENCODED_KEY --target production --tag $IMAGE_NAME ./app docker push $IMAGE_NAME test-api-mock: runs-on: ubuntu-latest diff --git a/app/Dockerfile b/app/Dockerfile index ac645034..eae43e63 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -18,6 +18,7 @@ RUN npm run build # Testing image FROM cypress/base as development WORKDIR /app +RUN apt-get update && apt-get install -y curl # Copy built assets and all source files from builder COPY --from=builder /app .