Skip to content

Commit

Permalink
Builds and pushes various components images
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabisonfire committed Feb 5, 2024
1 parent 24f35d1 commit ae7ebf7
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build_images.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build

on:
push:
branches:
- 'master'
- 'feat/build_workflow'

jobs:
build-and-push:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- dockerfile: ./src/node/addon/Dockerfile
tag: gabisonfire/knightcrawler-addon:latest
- dockerfile: ./src/node/addon-jackett/Dockerfile
tag: gabisonfire/knightcrawler-addon-jackett:latest
- dockerfile: ./src/node/consumer/Dockerfile
tag: gabisonfire/knightcrawler-consumer:latest
- dockerfile: ./src/producer/Dockerfile
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: app
file: ${{ matrix.dockerfile }}
push: true
tags: ${{ matrix.tag }}

0 comments on commit ae7ebf7

Please sign in to comment.