Skip to content

Commit

Permalink
chore: another attempt at fixing edge build versions
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbenincasa committed Dec 19, 2024
1 parent b5a4fdf commit 893e31d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-push-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
build-args: |
base_image_tag=${{ matrix.builds.base_tag }}
is_edge_build=${{github.ref == format('refs/heads/{0}', 'dev') && github.event_name == 'schedule'}}
tunarr_build="${TUNARR_VERSION}"
tunarr_build="${{ env.TUNARR_VERSION }}"
target: full-stack
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
18 changes: 9 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-l
FROM sources AS build-server
# Install deps
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
ARG is_edge_build
ARG tunarr_build
# Build common modules
RUN <<EOF
touch server/.env
echo TUNARR_BUILD=${tunarr_build} >> server/.env
echo TUNARR_EDGE_BUILD=${is_edge_build} >> server/.env
cat server/.env
EOF
# Build and bundle
RUN pnpm turbo --filter=@tunarr/server bundle
### End server build ###
Expand All @@ -76,15 +85,6 @@ RUN pnpm turbo --filter=@tunarr/web bundle
FROM sources as build-full-stack
# Install deps
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
ARG is_edge_build
ARG tunarr_build
# Build common modules
RUN <<EOF
touch server/.env
echo TUNARR_BUILD=${tunarr_build} >> server/.env
echo TUNARR_EDGE_BUILD=${is_edge_build} >> server/.env
cat server/.env
EOF
RUN NODE_OPTIONS=--max-old-space-size=32768 pnpm turbo bundle --filter=@tunarr/server
RUN NODE_OPTIONS=--max-old-space-size=32768 pnpm turbo bundle --filter=@tunarr/web

Expand Down

0 comments on commit 893e31d

Please sign in to comment.