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:
|
jobs:
|
||||||
build-ente-images:
|
build-ente-images:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
app:
|
||||||
|
- photos
|
||||||
|
- cast
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -37,6 +42,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
context: "./ente/web"
|
context: "./ente/web"
|
||||||
push: true
|
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: |
|
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
|
FROM node:21-bookworm-slim as ente-builder
|
||||||
|
|
||||||
ARG ENTE_BRANCH=main
|
ARG ENTE_BRANCH=main
|
||||||
|
ARG ENTE_APP=photos
|
||||||
|
|
||||||
ENV NEXT_PUBLIC_ENTE_ENDPOINT=DOCKER_RUNTIME_REPLACE_ENDPOINT \
|
ENV NEXT_PUBLIC_ENTE_ENDPOINT=DOCKER_RUNTIME_REPLACE_ENDPOINT \
|
||||||
NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT=DOCKER_RUNTIME_REPLACE_ALBUMS_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
|
WORKDIR /app/web
|
||||||
|
|
||||||
RUN yarn install && \
|
RUN yarn install && \
|
||||||
yarn build
|
yarn build:${ENTE_APP}
|
||||||
|
|
||||||
|
|
||||||
FROM nginx:1.26-alpine-slim
|
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
|
COPY <<EOF /etc/nginx/conf.d/default.conf
|
||||||
server {
|
server {
|
||||||
listen 3000 default_server;
|
listen 3000 default_server;
|
||||||
|
|
Loading…
Reference in a new issue