rework github actions

This commit is contained in:
Markus Küffner
2021-10-28 21:06:32 +02:00
parent 8d5575ff42
commit dc1d6f8d2b
6 changed files with 89 additions and 33 deletions

View File

@@ -1,8 +1,16 @@
name: build-images
name: base-image-build
on:
workflow_dispatch:
schedule:
- cron: '0 2 * * *'
workflow_call:
inputs:
app:
required: true
type: string
description: 'app image to build'
secrets:
DOCKERHUB_USERNAME:
required: true
DOCKERHUB_TOKEN:
required: true
jobs:
build-images:
@@ -23,4 +31,4 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Run Build Script
run: bash ./scripts/build-images.sh ${{ secrets.DOCKERHUB_USERNAME }}/
run: bash ./scripts/build-images.sh ${{ secrets.DOCKERHUB_USERNAME }}/ ${{ inputs.app }}

13
.github/workflows/klipper.yaml vendored Normal file
View File

@@ -0,0 +1,13 @@
name: 'Image: Klipper'
on:
workflow_dispatch:
schedule:
- cron: '0 2 * * *'
jobs:
build:
uses: mkuf/prind/.github/workflows/image-workflow.yaml@main
with:
app: klipper
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

13
.github/workflows/mainsail.yaml vendored Normal file
View File

@@ -0,0 +1,13 @@
name: 'Image: Mainsail'
on:
workflow_dispatch:
schedule:
- cron: '0 2 * * *'
jobs:
build:
uses: mkuf/prind/.github/workflows/image-workflow.yaml@main
with:
app: mainsail
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

13
.github/workflows/moonraker.yaml vendored Normal file
View File

@@ -0,0 +1,13 @@
name: 'Image: Moonraker'
on:
workflow_dispatch:
schedule:
- cron: '0 2 * * *'
jobs:
build:
uses: mkuf/prind/.github/workflows/image-workflow.yaml@main
with:
app: moonraker
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

13
.github/workflows/ustreamer.yaml vendored Normal file
View File

@@ -0,0 +1,13 @@
name: 'Image: Ustreamer'
on:
workflow_dispatch:
schedule:
- cron: '0 2 * * *'
jobs:
build:
uses: mkuf/prind/.github/workflows/image-workflow.yaml@main
with:
app: ustreamer
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}