mirror of
https://github.com/mkuf/prind.git
synced 2026-05-07 02:25:51 +02:00
ci: add image docs workflows
This commit is contained in:
18
.github/workflows/image-docs-klipper.yaml
vendored
Normal file
18
.github/workflows/image-docs-klipper.yaml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
name: 'Docs: Klipper'
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- .github/workflows/template-image-docs-workflow.yaml
|
||||
- docker/klipper/README.md
|
||||
|
||||
jobs:
|
||||
docs:
|
||||
uses: ./.github/workflows/template-image-docs-workflow.yaml
|
||||
with:
|
||||
app: klipper
|
||||
short-description: "Klipper is a 3d-Printer firmware."
|
||||
secrets:
|
||||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
18
.github/workflows/image-docs-klipperscreen.yaml
vendored
Normal file
18
.github/workflows/image-docs-klipperscreen.yaml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
name: 'Docs: KlipperScreen'
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- .github/workflows/template-image-docs-workflow.yaml
|
||||
- docker/klipperscreen/README.md
|
||||
|
||||
jobs:
|
||||
docs:
|
||||
uses: ./.github/workflows/template-image-docs-workflow.yaml
|
||||
with:
|
||||
app: klipperscreen
|
||||
short-description: "KlipperScreen is a touchscreen GUI that interfaces with Klipper via Moonraker."
|
||||
secrets:
|
||||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
18
.github/workflows/image-docs-moonraker.yaml
vendored
Normal file
18
.github/workflows/image-docs-moonraker.yaml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
name: 'Docs: Moonraker'
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- .github/workflows/template-image-docs-workflow.yaml
|
||||
- docker/moonraker/README.md
|
||||
|
||||
jobs:
|
||||
docs:
|
||||
uses: ./.github/workflows/template-image-docs-workflow.yaml
|
||||
with:
|
||||
app: moonraker
|
||||
short-description: "Web API used to interact with the 3D printing firmware Klipper."
|
||||
secrets:
|
||||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
18
.github/workflows/image-docs-ustreamer.yaml
vendored
Normal file
18
.github/workflows/image-docs-ustreamer.yaml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
name: 'Docs: Ustreamer'
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- .github/workflows/template-image-docs-workflow.yaml
|
||||
- docker/ustreamer/README.md
|
||||
|
||||
jobs:
|
||||
docs:
|
||||
uses: ./.github/workflows/template-image-docs-workflow.yaml
|
||||
with:
|
||||
app: ustreamer
|
||||
short-description: "µStreamer is a lightweight and very quick server to stream MJPEG video"
|
||||
secrets:
|
||||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
@@ -1,4 +1,4 @@
|
||||
name: image-build-workflow
|
||||
name: "Template: image-build-workflow"
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
|
||||
32
.github/workflows/template-image-docs-workflow.yaml
vendored
Normal file
32
.github/workflows/template-image-docs-workflow.yaml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: "Template: image-docs-workflow"
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
app:
|
||||
required: true
|
||||
type: string
|
||||
description: 'app image to build'
|
||||
short-description:
|
||||
required: true
|
||||
type: string
|
||||
description: 'Docker Hub repository short description'
|
||||
secrets:
|
||||
DOCKERHUB_USERNAME:
|
||||
required: true
|
||||
DOCKERHUB_TOKEN:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
image-docs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: "Update Docker Hub Description"
|
||||
uses: peter-evans/dockerhub-description@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
repository: ${{ secrets.DOCKERHUB_USERNAME }}/${{ inputs.app }}
|
||||
short-description: ${{ inputs.short-description }}
|
||||
readme-filepath: ./docker/${{ inputs.app }}/README.md
|
||||
enable-url-completion: true
|
||||
Reference in New Issue
Block a user