-
Notifications
You must be signed in to change notification settings - Fork 277
34 lines (28 loc) · 1 KB
/
pull-request.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: PR Build Test
on:
pull_request
jobs:
test:
runs-on: ubuntu-latest
name: Test Image
strategy:
matrix:
arch: [linux/amd64, linux/arm/v7, linux/arm64, linux/arm/v6]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Enable qemu
run: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: Build docker image
run: |
docker build -t diyhue/core:ci -f ./.build/Dockerfile --platform=${{ matrix.arch }} --build-arg TARGETPLATFORM=${{ matrix.arch }} .
- name: Run docker image
run: |
docker run -d --name diyHue --network=host -v /mnt/hue-emulator/export:/opt/hue-emulator/export -e MAC=b8:27:eb:d4:dc:11 -e IP=192.168.1.123 -e DECONZ=192.168.1.111 -e IP_RANGE=5,6 -e DEBUG=true diyhue/core:ci
sleep 15
docker logs diyHue
- name: Cleanup
run: |
docker kill diyHue
docker rm diyHue