diff --git a/.forgejo/workflows/ente.yaml b/.forgejo/workflows/ente.yaml index c22e9ea..532da44 100644 --- a/.forgejo/workflows/ente.yaml +++ b/.forgejo/workflows/ente.yaml @@ -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 }} \ No newline at end of file + ENTE_BRANCH=${{ env.ENTE_PHOTOS_VERSION }} + ENTE_APP=${{ matrix.app }} \ No newline at end of file diff --git a/ente/web/Dockerfile b/ente/web/Dockerfile index 791292d..381fd7d 100644 --- a/ente/web/Dockerfile +++ b/ente/web/Dockerfile @@ -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 <