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
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:
parent
24f5950f8e
commit
a69a38a3a2
3 changed files with 19 additions and 4 deletions
|
@ -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"}}'
|
||||||
|
|
|
@ -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 }}
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue