2022-11-15 22:49:39 +01:00
|
|
|
name: Build the Docker images
|
|
|
|
|
|
|
|
on:
|
|
|
|
# Only trigger the workflow when there is a PR on the master branch
|
|
|
|
pull_request:
|
|
|
|
branches: [ "master" ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-05-18 11:39:17 +02:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v3
|
2022-11-15 22:49:39 +01:00
|
|
|
|
2023-05-18 11:39:17 +02:00
|
|
|
- name: Set up QEMU (for ARM emulation)
|
|
|
|
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
|
|
|
|
- name: Build Docker images
|
|
|
|
run: |
|
|
|
|
docker-compose --env-file template.env build --parallel
|