2022-11-06 14:19:00 +01:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- dev
|
|
|
|
- master
|
|
|
|
|
|
|
|
env:
|
|
|
|
PYTHON_VERSION: 3.9
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
multi_arch_build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Image Build
|
|
|
|
steps:
|
|
|
|
- name: Check out code
|
2022-11-07 14:18:10 +01:00
|
|
|
uses: actions/checkout@v3
|
2022-11-06 14:19:00 +01:00
|
|
|
- name: Set up QEMU
|
2022-11-07 14:18:10 +01:00
|
|
|
uses: docker/setup-qemu-action@v2
|
2022-11-06 14:19:00 +01:00
|
|
|
- name: Set up Docker Buildx
|
2022-11-07 14:18:10 +01:00
|
|
|
uses: docker/setup-buildx-action@v2
|
2022-11-06 14:19:00 +01:00
|
|
|
- name: Log in to the Container registry
|
2022-11-07 14:18:10 +01:00
|
|
|
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
|
2022-11-06 14:19:00 +01:00
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Build web
|
|
|
|
run: make build_web
|
|
|
|
- name: Build image
|
|
|
|
run: make push
|