From 2c41657d25b46987d708c881f969dac3342e3aaa Mon Sep 17 00:00:00 2001 From: Gabisonfire Date: Sun, 4 Feb 2024 20:59:12 -0500 Subject: [PATCH] Builds and pushes various components images --- .github/workflows/build_images.yaml | 42 +++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/build_images.yaml diff --git a/.github/workflows/build_images.yaml b/.github/workflows/build_images.yaml new file mode 100644 index 0000000..1478f9d --- /dev/null +++ b/.github/workflows/build_images.yaml @@ -0,0 +1,42 @@ +name: Build + +on: + push: + branches: + - 'master' + - 'feat/build_workflow' + +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 }} \ No newline at end of file