images/.forgejo/workflows/ente.yaml
Peter Kurfer a69a38a3a2
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
feat(ente): build web image from tag
2024-05-15 17:58:55 +02:00

42 lines
No EOL
1.2 KiB
YAML

---
name: Image builds
on:
schedule:
- cron: "21 2 * * *"
push:
branches:
- main
paths:
- ".forgejo/workflows/ente.yaml"
- "ente/**"
jobs:
build-ente-images:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: code.icb4dc0.de
username: prskr
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
- name: Fetch latest ente photos tag
run: |
echo "ENTE_PHOTOS_VERSION=$(gh release list -R ente-io/ente --exclude-pre-releases --exclude-drafts --jq '.[] | select(.tagName | startswith("photos")) | .tagName' --json 'tagName' --limit 1)" >> "$GITHUB_ENV"
env:
GH_TOKEN: ${{ secrets.RENOVATE_GITHUB_TOKEN }}
- name: Build and push ente web
uses: docker/build-push-action@v5
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 }}