From 49ebb54f3054345cd1a6a17533fecf371fad631e Mon Sep 17 00:00:00 2001 From: Paul Horton Date: Mon, 2 Sep 2024 09:54:37 +0100 Subject: [PATCH] pass newly named ENV var in build and release process Signed-off-by: Paul Horton --- .github/workflows/release.yml | 4 ++-- Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c46bdd0..e5efb8b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,7 +40,7 @@ jobs: uses: docker/build-push-action@v6 with: build-args: | - CLA_URL=${{ secrets.CLA_URL }} + REACT_APP_CLA_URL=${{ secrets.CLA_URL }} REACT_APP_COMPANY_NAME=${{ secrets.REACT_APP_COMPANY_NAME }} REACT_APP_COMPANY_WEBSITE=${{ secrets.REACT_APP_COMPANY_WEBSITE }} REACT_APP_CLA_APP_NAME=${{ secrets.REACT_APP_CLA_APP_NAME }} @@ -67,7 +67,7 @@ jobs: uses: docker/build-push-action@v5 with: build-args: | - CLA_URL=${{ secrets.CLA_URL }} + REACT_APP_CLA_URL=${{ secrets.CLA_URL }} REACT_APP_COMPANY_NAME=${{ secrets.REACT_APP_COMPANY_NAME }} REACT_APP_COMPANY_WEBSITE=${{ secrets.REACT_APP_COMPANY_WEBSITE }} REACT_APP_CLA_APP_NAME=${{ secrets.REACT_APP_CLA_APP_NAME }} diff --git a/Dockerfile b/Dockerfile index 4d65144..0bbd891 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ # FROM node:18-alpine3.18 AS yarn-build -ARG CLA_URL=http://something +ARG REACT_APP_CLA_URL=http://something ARG REACT_APP_COMPANY_NAME=A Company Name Here ARG REACT_APP_COMPANY_WEBSITE=http://localhost ARG REACT_APP_CLA_APP_NAME=CLA App @@ -29,7 +29,7 @@ WORKDIR /src COPY . . -RUN CLA_URL="$CLA_URL" \ +RUN REACT_APP_CLA_URL="$REACT_APP_CLA_URL" \ REACT_APP_COMPANY_NAME="$REACT_APP_COMPANY_NAME" \ REACT_APP_COMPANY_WEBSITE="$REACT_APP_COMPANY_WEBSITE" \ REACT_APP_CLA_APP_NAME="$REACT_APP_CLA_APP_NAME" \