From 5a9b3aba6e0662060fb1021b1d9466fa6ca11963 Mon Sep 17 00:00:00 2001 From: Nischal Shrestha Date: Wed, 21 Aug 2024 13:42:14 +0545 Subject: [PATCH] fix --- .github/workflows/build_and_deploy.yml | 2 +- src/frontend/Dockerfile | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index ee724e6c..8cfca5a8 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -46,7 +46,7 @@ jobs: base64_kv=$(echo "$parsed_vars" | to_envs | base64) echo "base64_env<<$EOF" >> $GITHUB_OUTPUT - echo "base64kv" + echo "$base64kv" echo "$EOF" >> $GITHUB_OUTPUT echo $GITHUB_OUTPUT diff --git a/src/frontend/Dockerfile b/src/frontend/Dockerfile index d51b4741..64a66f3d 100644 --- a/src/frontend/Dockerfile +++ b/src/frontend/Dockerfile @@ -23,9 +23,8 @@ RUN yarn build # Copy static files to minio and generated index.html to volume FROM docker.io/minio/minio:${MINIO_TAG} AS live -ARG B64_ARGS_TO_ENV COPY --from=build /app/dist /tmp/dist -RUN ( echo ${B64_ARGS_TO_ENV} | base64 -d ) > /.env +COPY --from=build /app/.env /.env VOLUME /tmp/frontend_html COPY ./docker-entrypoint.sh /docker-entrypoint.sh ENTRYPOINT [ "/docker-entrypoint.sh" ]