From 53ec4b3bb4ff173e831a0a1a11fcbc77fdf9121b Mon Sep 17 00:00:00 2001 From: Marcelo Grebois Date: Sat, 18 May 2024 14:47:08 +0200 Subject: [PATCH] Testing build --- .github/workflows/mainnet-frontend.yml | 11 ++++++----- web/leaderboard/Dockerfile.frontend | 6 +++++- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/mainnet-frontend.yml b/.github/workflows/mainnet-frontend.yml index 44e23fe17..bda80ff43 100644 --- a/.github/workflows/mainnet-frontend.yml +++ b/.github/workflows/mainnet-frontend.yml @@ -4,8 +4,9 @@ on: pull_request: branches: - develop - types: - - closed +# types: +# - closed +# - open permissions: id-token: write @@ -16,14 +17,14 @@ env: jobs: codecov: - if: github.event.pull_request.merged == true +# if: github.event.pull_request.merged == true runs-on: powerfulubuntu steps: - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 get-diff: - if: github.event.pull_request.merged == true +# if: github.event.pull_request.merged == true runs-on: powerfulubuntu environment: mainnet outputs: @@ -57,7 +58,7 @@ jobs: fi deploy-web: - if: needs.get-diff.outputs.file_exists == 'true' +# if: needs.get-diff.outputs.file_exists == 'true' runs-on: powerfulubuntu environment: mainnet needs: [get-diff] diff --git a/web/leaderboard/Dockerfile.frontend b/web/leaderboard/Dockerfile.frontend index 63ff1bf75..ae86978c3 100644 --- a/web/leaderboard/Dockerfile.frontend +++ b/web/leaderboard/Dockerfile.frontend @@ -15,6 +15,10 @@ ENV PATH /app/node_modules.bin:$PATH COPY . ./ +#RUN npm install next@latest -g + +#RUN npm run build + RUN yarn ARG FLU_SENTRY_DSN @@ -33,6 +37,6 @@ WORKDIR /usr/local/src/fluidity/web/leaderboard EXPOSE 3000 -RUN mkdir .next && touch .next/BUILD_ID && echo "999" > .next/BUILD_ID +RUN yarn build CMD ["yarn", "start"]