mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-01-23 02:35:10 +00:00
docs: migrate to MkDocs for site generation (#5227)
This commit is contained in:
parent
464b644adf
commit
6072540c3e
25 changed files with 281 additions and 8 deletions
22
.github/workflows/site-pr.yml
vendored
Normal file
22
.github/workflows/site-pr.yml
vendored
Normal 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
39
.github/workflows/site-publish.yml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue