From 17318829276dc58213788eead71d7305492ff45f Mon Sep 17 00:00:00 2001 From: Jon Kafton <939376+jonkafton@users.noreply.github.com> Date: Thu, 17 Oct 2024 13:22:32 +0200 Subject: [PATCH 1/2] Copy yarn releases --- frontends/main/Dockerfile.web | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/main/Dockerfile.web b/frontends/main/Dockerfile.web index eb53e51cbc..4033007f28 100644 --- a/frontends/main/Dockerfile.web +++ b/frontends/main/Dockerfile.web @@ -42,7 +42,7 @@ RUN apk add --no-cache libc6-compat WORKDIR /app COPY .yarnrc.yml /app -COPY .yarn/releases/yarn-4.4.1.cjs /app/.yarn/releases/yarn-4.4.1.cjs +COPY .yarn/releases /app/.yarn/releases COPY yarn.lock /app COPY package.json /app COPY frontends /app/frontends From 61bd456e8334829e35db61723e20a751593f8d25 Mon Sep 17 00:00:00 2001 From: Jon Kafton <939376+jonkafton@users.noreply.github.com> Date: Thu, 17 Oct 2024 13:34:27 +0200 Subject: [PATCH 2/2] Build the docker image on all push --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0bc915a41..314c94ba73 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -156,7 +156,6 @@ jobs: file: coverage/lcov.info build-deploy-frontend: - if: github.ref == 'refs/heads/nextjs' needs: javascript-tests runs-on: ubuntu-latest steps: @@ -186,6 +185,7 @@ jobs: --context-path . - name: Release on Heroku + if: github.ref == 'refs/heads/nextjs' env: HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} run: heroku container:release --app mitopen-rc-nextjs web