mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
Merge pull request #67 from Gabisonfire/feat/build_workflow
Image build action
This commit is contained in:
43
.github/workflows/build_images.yaml
vendored
Normal file
43
.github/workflows/build_images.yaml
vendored
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
name: Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
paths:
|
||||||
|
- src/**
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-push:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- context: ./src/node/addon/
|
||||||
|
tag: gabisonfire/knightcrawler-addon:latest
|
||||||
|
- context: ./src/node/addon-jackett/
|
||||||
|
tag: gabisonfire/knightcrawler-addon-jackett:latest
|
||||||
|
- context: ./src/node/consumer/
|
||||||
|
tag: gabisonfire/knightcrawler-consumer:latest
|
||||||
|
- context: ./src/producer/
|
||||||
|
tag: gabisonfire/knightcrawler-producer:latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
-
|
||||||
|
name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Build and push ${{ matrix.tag }}
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: ${{ matrix.context }}
|
||||||
|
push: true
|
||||||
|
tags: ${{ matrix.tag }}
|
||||||
@@ -81,9 +81,7 @@ services:
|
|||||||
- knightcrawler-network
|
- knightcrawler-network
|
||||||
|
|
||||||
producer:
|
producer:
|
||||||
build:
|
image: gabisonfire/knightcrawler-producer:latest
|
||||||
context: ../../src/producer
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
labels:
|
labels:
|
||||||
logging: "promtail"
|
logging: "promtail"
|
||||||
env_file:
|
env_file:
|
||||||
@@ -93,9 +91,7 @@ services:
|
|||||||
- knightcrawler-network
|
- knightcrawler-network
|
||||||
|
|
||||||
consumer:
|
consumer:
|
||||||
build:
|
image: gabisonfire/knightcrawler-consumer:latest
|
||||||
context: ../../src/node/consumer
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
labels:
|
labels:
|
||||||
@@ -107,9 +103,7 @@ services:
|
|||||||
- knightcrawler-network
|
- knightcrawler-network
|
||||||
|
|
||||||
addon:
|
addon:
|
||||||
build:
|
image: gabisonfire/knightcrawler-addon:latest
|
||||||
context: ../../src/node/addon
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
ports:
|
ports:
|
||||||
- "7000:7000"
|
- "7000:7000"
|
||||||
labels:
|
labels:
|
||||||
|
|||||||
Reference in New Issue
Block a user