mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
Skip workflow to base, and then one for each docker image
Also limits each to firing based on the path of changes in the push.
This commit is contained in:
@@ -1,7 +1,14 @@
|
|||||||
name: Build and Push Docker Images
|
name: Build and Push Docker Images Base Workflow
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
CONTEXT:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
IMAGE_NAME:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-images:
|
build-and-push-images:
|
||||||
@@ -17,20 +24,8 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- context: ./src/node/addon/
|
- context: ${{ github.event.inputs.CONTEXT }}
|
||||||
image_name: knightcrawler-addon
|
image_name: ${{ github.event.inputs.IMAGE_NAME }}
|
||||||
platforms: linux/amd64,linux/arm64
|
|
||||||
- context: ./src/node/addon-jackett/
|
|
||||||
image_name: knightcrawler-addon-jackett
|
|
||||||
platforms: linux/amd64,linux/arm64
|
|
||||||
- context: ./src/node/consumer/
|
|
||||||
image_name: knightcrawler-consumer
|
|
||||||
platforms: linux/amd64,linux/arm64
|
|
||||||
- context: ./src/producer/
|
|
||||||
image_name: knightcrawler-producer
|
|
||||||
platforms: linux/amd64,linux/arm64
|
|
||||||
- context: ./src/metadata/
|
|
||||||
image_name: knightcrawler-metadata
|
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
|
|
||||||
name: Build - ${{ matrix.image_name }}
|
name: Build - ${{ matrix.image_name }}
|
||||||
14
.github/workflows/build_addon.yaml
vendored
Normal file
14
.github/workflows/build_addon.yaml
vendored
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
name: Build and Push Addon Image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'src/node/addon/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
process:
|
||||||
|
uses: ./.github/workflows/base_image_workflow.yaml
|
||||||
|
secrets: inherit
|
||||||
|
with:
|
||||||
|
CONTEXT: ./src/node/addon/
|
||||||
|
IMAGE_NAME: knightcrawler-addon
|
||||||
14
.github/workflows/build_consumer.yaml
vendored
Normal file
14
.github/workflows/build_consumer.yaml
vendored
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
name: Build and Push Addon Image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'src/node/consumer/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
process:
|
||||||
|
uses: ./.github/workflows/base_image_workflow.yaml
|
||||||
|
secrets: inherit
|
||||||
|
with:
|
||||||
|
CONTEXT: ./src/node/consumer/
|
||||||
|
IMAGE_NAME: knightcrawler-consumer
|
||||||
14
.github/workflows/build_jackett-addon.yaml
vendored
Normal file
14
.github/workflows/build_jackett-addon.yaml
vendored
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
name: Build and Push Addon Image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'src/node/addon-jackett/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
process:
|
||||||
|
uses: ./.github/workflows/base_image_workflow.yaml
|
||||||
|
secrets: inherit
|
||||||
|
with:
|
||||||
|
CONTEXT: ./src/node/addon-jackett/
|
||||||
|
IMAGE_NAME: knightcrawler-addon-jackett
|
||||||
14
.github/workflows/build_metadata.yaml
vendored
Normal file
14
.github/workflows/build_metadata.yaml
vendored
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
name: Build and Push Addon Image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'src/metadata/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
process:
|
||||||
|
uses: ./.github/workflows/base_image_workflow.yaml
|
||||||
|
secrets: inherit
|
||||||
|
with:
|
||||||
|
CONTEXT: ./src/metadata/
|
||||||
|
IMAGE_NAME: knightcrawler-metadata
|
||||||
14
.github/workflows/build_producer.yaml
vendored
Normal file
14
.github/workflows/build_producer.yaml
vendored
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
name: Build and Push Addon Image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'src/producer/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
process:
|
||||||
|
uses: ./.github/workflows/base_image_workflow.yaml
|
||||||
|
secrets: inherit
|
||||||
|
with:
|
||||||
|
CONTEXT: ./src/producer/
|
||||||
|
IMAGE_NAME: knightcrawler-producer
|
||||||
Reference in New Issue
Block a user