From 9200b873d784cfd7aff8d5f1c1cf7cc6bd9357db Mon Sep 17 00:00:00 2001 From: etiti Date: Tue, 18 Feb 2025 17:13:35 +0300 Subject: [PATCH] fixing image bugs --- .gitlab-ci.yml | 1 + Dockerfile.govtool | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 923024c..44349d2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -90,6 +90,7 @@ build_backend: docker build --network host -f backend/Dockerfile \ -t "$CI_APPLICATION_REPOSITORY/outcomes.1694.io:$CI_APPLICATION_TAG" \ -t "$CI_APPLICATION_REPOSITORY/outcomes.1694.io:latest" ./backend + docker push "$CI_APPLICATION_REPOSITORY/outcomes.1694.io:$CI_APPLICATION_TAG" docker push "$CI_APPLICATION_REPOSITORY/outcomes.1694.io:latest" rules: diff --git a/Dockerfile.govtool b/Dockerfile.govtool index 3e0638b..fc2e29e 100644 --- a/Dockerfile.govtool +++ b/Dockerfile.govtool @@ -16,6 +16,8 @@ RUN yarn install COPY ./ui/dist /app/govtool/frontend/ui/dist +RUN ls /app/govtool/frontend/ui/dist + # Conditionally install the package or copy UI files RUN if [ "$CARDANO_NETWORK" = "mainnet" ]; then \ echo "Installing latest @intersect.mbo/govtool-outcomes-pillar-ui via yarn..."; \ @@ -24,6 +26,7 @@ RUN if [ "$CARDANO_NETWORK" = "mainnet" ]; then \ else \ echo "Copying UI files for non-mainnet environment..."; \ cp -r /app/govtool/frontend/ui/dist /app/govtool/frontend/node_modules/@intersect.mbo/govtool-outcomes-pillar-ui/dist; \ + rm -rf /app/govtool/frontend/node_modules/@intersect.mbo/govtool-outcomes-pillar-ui/dist/dist \ ls /app/govtool/frontend/node_modules/@intersect.mbo/govtool-outcomes-pillar-ui/dist; \ fi