feat(ente): build photos and cast
All checks were successful
All checks were successful
This commit is contained in:
parent
21a000e1d1
commit
3db50d5d82
2 changed files with 14 additions and 4 deletions
|
@ -13,6 +13,11 @@ on:
|
|||
jobs:
|
||||
build-ente-images:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
app:
|
||||
- photos
|
||||
- cast
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
@ -37,6 +42,7 @@ jobs:
|
|||
with:
|
||||
context: "./ente/web"
|
||||
push: true
|
||||
tags: code.icb4dc0.de/infrastructure/images/ente/web:${{ env.ENTE_PHOTOS_VERSION }}
|
||||
tags: code.icb4dc0.de/infrastructure/images/ente/${{ matrix.app }}:${{ env.ENTE_PHOTOS_VERSION }}
|
||||
build-args: |
|
||||
ENTE_BRANCH=${{ env.ENTE_PHOTOS_VERSION }}
|
||||
ENTE_BRANCH=${{ env.ENTE_PHOTOS_VERSION }}
|
||||
ENTE_APP=${{ matrix.app }}
|
|
@ -2,6 +2,7 @@
|
|||
FROM node:21-bookworm-slim as ente-builder
|
||||
|
||||
ARG ENTE_BRANCH=main
|
||||
ARG ENTE_APP=photos
|
||||
|
||||
ENV NEXT_PUBLIC_ENTE_ENDPOINT=DOCKER_RUNTIME_REPLACE_ENDPOINT \
|
||||
NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT=DOCKER_RUNTIME_REPLACE_ALBUMS_ENDPOINT
|
||||
|
@ -15,11 +16,14 @@ RUN git clone --recursive --depth=1 --shallow-submodules --branch="${ENTE_BRANCH
|
|||
WORKDIR /app/web
|
||||
|
||||
RUN yarn install && \
|
||||
yarn build
|
||||
yarn build:${ENTE_APP}
|
||||
|
||||
|
||||
FROM nginx:1.26-alpine-slim
|
||||
COPY --from=ente-builder /app/web/apps/photos/out /usr/share/nginx/html
|
||||
|
||||
ARG ENTE_APP=photos
|
||||
|
||||
COPY --from=ente-builder /app/web/apps/${ENTE_APP}/out /usr/share/nginx/html
|
||||
COPY <<EOF /etc/nginx/conf.d/default.conf
|
||||
server {
|
||||
listen 3000 default_server;
|
||||
|
|
Loading…
Reference in a new issue