docs: migrate to MkDocs for site generation (#5227)

This commit is contained in:
Oleg Lobanov 2025-06-28 19:34:34 +02:00 committed by GitHub
parent 464b644adf
commit 6072540c3e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 281 additions and 8 deletions

22
.github/workflows/site-pr.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: Build Site Image
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile.site
push: false

39
.github/workflows/site-publish.yml vendored Normal file
View file

@ -0,0 +1,39 @@
name: Build and Push Site Image
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile.site
push: true
tags: |
filebrowser/site:latest
ghcr.io/filebrowser/site:latest