feat(ente): build web image from tag
All checks were successful
act_runtime / build_images (node:20-bookworm-slim, ubuntu-latest) (push) Successful in 14s
act_runtime / build_images (node:20-bullseye-slim, ubuntu-latest) (push) Successful in 14s
act_runtime / build_images (node:20-bookworm-slim, ubuntu-latest-amd64) (push) Successful in 17s
Image builds / build-argo-cd-image (push) Successful in 17s
act_runtime / build_images (node:20-bullseye-slim, ubuntu-latest-amd64) (push) Successful in 15s
Image builds / build_images (renovate) (push) Successful in 12s
Image builds / build-ente-images (push) Successful in 4m54s

This commit is contained in:
Peter 2024-05-15 17:58:55 +02:00
parent 24f5950f8e
commit a69a38a3a2
Signed by: prskr
GPG key ID: F56BED6903BC5E37
3 changed files with 19 additions and 4 deletions

View file

@ -6,6 +6,9 @@ on:
push: push:
branches: branches:
- main - main
paths:
- ".forgejo/workflows/act_runtime.yaml"
- "act_runtime/**"
env: env:
TAGS: '{"ubuntu-latest": {"node:20-bullseye-slim": "20.04-arm64","node:20-bookworm-slim": "arm64"},"ubuntu-latest-amd64": {"node:20-bullseye-slim": "20.04-amd64","node:20-bookworm-slim": "amd64"}}' TAGS: '{"ubuntu-latest": {"node:20-bullseye-slim": "20.04-arm64","node:20-bookworm-slim": "arm64"},"ubuntu-latest-amd64": {"node:20-bullseye-slim": "20.04-amd64","node:20-bookworm-slim": "amd64"}}'

View file

@ -1,9 +1,14 @@
--- ---
name: Image builds name: Image builds
on: on:
schedule:
- cron: "21 2 * * *"
push: push:
branches: branches:
- main - main
paths:
- ".forgejo/workflows/ente.yaml"
- "ente/**"
jobs: jobs:
build-ente-images: build-ente-images:
@ -27,6 +32,11 @@ jobs:
env: env:
GH_TOKEN: ${{ secrets.RENOVATE_GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.RENOVATE_GITHUB_TOKEN }}
- name: Test ente version - name: Build and push ente web
run: | uses: docker/build-push-action@v5
echo "$ENTE_PHOTOS_VERSION" with:
context: "./ente/web"
push: true
tags: code.icb4dc0.de/infrastructure/images/ente/web:${{ env.ENTE_PHOTOS_VERSION }}
build-args: |
ENTE_BRANCH=${{ env.ENTE_PHOTOS_VERSION }}

View file

@ -1,6 +1,8 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
FROM node:21-bookworm-slim as ente-builder FROM node:21-bookworm-slim as ente-builder
ARG ENTE_BRANCH=main
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
@ -8,7 +10,7 @@ RUN apt update && apt install -y ca-certificates git git-lfs && rm -rf /var/lib/
WORKDIR /app WORKDIR /app
RUN git clone --recursive --depth=1 --shallow-submodules https://github.com/ente-io/ente.git . RUN git clone --recursive --depth=1 --shallow-submodules --branch="${ENTE_BRANCH}" https://github.com/ente-io/ente.git .
WORKDIR /app/web WORKDIR /app/web