mirror of https://github.com/MISP/misp-docker
Build multi-arch images when a pull request is opened
parent
14c042f41e
commit
c5e184f88e
|
@ -7,12 +7,18 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
# The type of runner that the job will run on
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# checkout the repository in the ubuntu-latest environment
|
- name: Checkout repository
|
||||||
- uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Build the Docker images
|
- name: Set up QEMU (for ARM emulation)
|
||||||
run: docker compose --env-file template.env build
|
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
|
||||||
|
|
Loading…
Reference in New Issue