2022-05-21 22:09:02 +02:00
|
|
|
name: Docker
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "master"
|
|
|
|
tags:
|
|
|
|
- "*"
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish_api:
|
|
|
|
runs-on: ubuntu-latest
|
2022-05-21 23:57:18 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
architecture: [linux/amd64, linux/arm64]
|
2022-05-21 22:09:02 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
-
|
|
|
|
name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v2
|
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
-
|
|
|
|
name: Login to DockerHub
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
-
|
|
|
|
name: Build and push - API
|
|
|
|
uses: docker/build-push-action@v3
|
|
|
|
with:
|
|
|
|
context: ./api
|
2022-05-21 23:57:18 +02:00
|
|
|
platforms: ${{ matrix.architecture }}
|
2022-05-21 22:09:02 +02:00
|
|
|
push: true
|
2022-05-21 23:57:18 +02:00
|
|
|
tags: ghcr.io/janderedev/automod:api-${{ matrix.architecture }}
|
2022-05-21 22:09:02 +02:00
|
|
|
|
|
|
|
publish_web:
|
|
|
|
runs-on: ubuntu-latest
|
2022-05-21 23:57:18 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
architecture: [linux/amd64, linux/arm64]
|
2022-05-21 22:09:02 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
-
|
|
|
|
name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v2
|
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
-
|
|
|
|
name: Login to DockerHub
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
-
|
|
|
|
name: Build and push - Web
|
|
|
|
uses: docker/build-push-action@v3
|
|
|
|
with:
|
|
|
|
context: ./web
|
2022-05-21 23:57:18 +02:00
|
|
|
platforms: ${{ matrix.architecture }}
|
2022-05-21 22:09:02 +02:00
|
|
|
push: true
|
2022-05-21 23:57:18 +02:00
|
|
|
tags: ghcr.io/janderedev/automod:web-${{ matrix.architecture }}
|
2022-05-21 22:09:02 +02:00
|
|
|
|
|
|
|
publish_bridge:
|
|
|
|
runs-on: ubuntu-latest
|
2022-05-21 23:57:18 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
architecture: [linux/amd64, linux/arm64]
|
2022-05-21 22:09:02 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
-
|
|
|
|
name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v2
|
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
-
|
|
|
|
name: Login to DockerHub
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
-
|
|
|
|
name: Build and push - Bridge
|
|
|
|
uses: docker/build-push-action@v3
|
|
|
|
with:
|
|
|
|
context: ./bridge
|
2022-05-21 23:57:18 +02:00
|
|
|
platforms: ${{ matrix.architecture }}
|
2022-05-21 22:09:02 +02:00
|
|
|
push: true
|
2022-05-21 23:57:18 +02:00
|
|
|
tags: ghcr.io/janderedev/automod:bridge-${{ matrix.architecture }}
|
2022-05-21 22:09:02 +02:00
|
|
|
|
|
|
|
publish_bot:
|
|
|
|
runs-on: ubuntu-latest
|
2022-05-21 23:57:18 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
architecture: [linux/amd64, linux/arm64]
|
2022-05-21 22:09:02 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
-
|
|
|
|
name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v2
|
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
-
|
|
|
|
name: Login to DockerHub
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
-
|
|
|
|
name: Build and push - Bot
|
|
|
|
uses: docker/build-push-action@v3
|
|
|
|
with:
|
|
|
|
context: ./bot
|
2022-05-21 23:57:18 +02:00
|
|
|
platforms: ${{ matrix.architecture }}
|
2022-05-21 22:09:02 +02:00
|
|
|
push: true
|
2022-05-21 23:57:18 +02:00
|
|
|
tags: ghcr.io/janderedev/automod:bot-${{ matrix.architecture }}
|