potential fix
ci / build (push) Failing after 6s Details

This commit is contained in:
Chris Grimmett 2024-03-28 23:45:51 -08:00
parent e4e9d40e05
commit 3060f18e80
4 changed files with 4 additions and 36 deletions

View File

@ -16,9 +16,9 @@ jobs:
# repository: https://gitea.futureporn.net/futureporn/fp
- uses: mr-smithers-excellent/docker-build-push@v6
name: Build & push fp/next Docker image
name: Build & push next Docker image
with:
image: gitea.futureporn.net/futureporn/next
image: futureporn/next
tags: latest
# which 'registry:' version do I need?
registry: https://gitea.futureporn.net

View File

@ -39,4 +39,4 @@ cluster:
# A gitea act runner which runs locally
# https://docs.gitea.com/next/usage/actions/overview
runner:
docker run -d --rm -e GITEA_INSTANCE_URL=https://gitea.futureporn.net -e GITEA_RUNNER_REGISTRATION_TOKEN=${GITEA_RUNNER_REGISTRATION_TOKEN} -v /var/run/docker.sock:/var/run/docker.sock --name fp-gitea-act-runner gitea/act_runner:latest
docker run -d --rm -e GITEA_INSTANCE_URL=https://gitea.futureporn.net -e GITEA_RUNNER_REGISTRATION_TOKEN=${GITEA_RUNNER_REGISTRATION_TOKEN} -v /var/run/docker.sock:/var/run/docker.sock -v $HOME/.local/share/applications/fp/act-runner-data:/data --name fp-gitea-act-runner gitea/act_runner:latest

View File

@ -116,7 +116,7 @@ services:
container_name: fp-next
build:
context: .
dockerfile: Dockerfile
dockerfile: next.Dockerfile
target: dev
restart: on-failure
environment:

View File

@ -1,32 +0,0 @@
FROM node:20-slim AS base
# Install dependencies only when needed
FROM base AS deps
RUN corepack enable
FROM deps AS build
ARG NEXT_PUBLIC_SITE_URL=https://futureporn.net
ARG NEXT_PUBLIC_STRAPI_URL=https://portal.futureporn.net
ARG NEXT_PUBLIC_UPPY_COMPANION_URL=https://uppy.futureporn.net
ENV NEXT_PUBLIC_SITE_URL ${NEXT_PUBLIC_SITE_URL}
ENV NEXT_PUBLIC_STRAPI_URL ${NEXT_PUBLIC_STRAPI_URL}
ENV NEXT_PUBLIC_UPPY_COMPANION_URL ${NEXT_PUBLIC_UPPY_COMPANION_URL}
WORKDIR /usr/src/app
COPY . .
ENV NEXT_TELEMETRY_DISABLED 1
RUN --mount=type=cache,id=pnpm-store,target=/root/.pnpm-store pnpm install
RUN pnpm run -r build
RUN pnpm deploy --filter=fp-next /app
FROM deps AS dev
WORKDIR /app
COPY --from=build /usr/src/app /app
CMD ["pnpm", "run", "dev"]
FROM deps AS next
WORKDIR /app
COPY --from=build /app /app
CMD ["pnpm", "start"]