feat(ente): build photos and cast
All checks were successful
Image builds / build-ente-images (cast) (push) Successful in 3m36s
Image builds / build-ente-images (photos) (push) Successful in 4m54s
Renovate / renovate (push) Successful in 17s
Image builds / build_images (renovate) (push) Successful in 5m23s

This commit is contained in:
Peter 2024-05-18 19:25:44 +02:00
parent 21a000e1d1
commit 3db50d5d82
Signed by: prskr
GPG key ID: F56BED6903BC5E37
2 changed files with 14 additions and 4 deletions

View file

@ -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_APP=${{ matrix.app }}

View file

@ -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;