forked from mkocus/hass-lovelace-kindle-screensaver
-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (55 loc) · 2.09 KB
/
test.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Test Docker build
on: [pull_request]
jobs:
dockerlint:
name: Dockerfile linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: hadolint
run: docker run --rm -i hadolint/hadolint < lovelace-kindle-screensaver/Dockerfile
build-amd64:
name: Build amd64 image
runs-on: ubuntu-latest
needs: [dockerlint]
steps:
- uses: actions/checkout@v2
- name: Patch files
uses: onlyutkarsh/[email protected]
with:
files: |
lovelace-kindle-screensaver/config.json
patch-syntax: |
= /version => "${{ github.run_number }}"
- name: build amd64 image
run: docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v ~/.docker:/root/.docker -v "$(pwd)":/data homeassistant/amd64-builder -t lovelace-kindle-screensaver --amd64 --test
build-armv7:
name: Build armv7 image
runs-on: ubuntu-latest
needs: [dockerlint]
steps:
- uses: actions/checkout@v2
- name: Patch files
uses: onlyutkarsh/[email protected]
with:
files: |
lovelace-kindle-screensaver/config.json
patch-syntax: |
= /version => "${{ github.run_number }}"
- name: build armv7 image
run: docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v ~/.docker:/root/.docker -v "$(pwd)":/data homeassistant/amd64-builder -t lovelace-kindle-screensaver --armv7 --test
build-aarch64:
name: Build aarch64 image
runs-on: ubuntu-latest
needs: [dockerlint]
steps:
- uses: actions/checkout@v2
- name: Patch files
uses: onlyutkarsh/[email protected]
with:
files: |
lovelace-kindle-screensaver/config.json
patch-syntax: |
= /version => "${{ github.run_number }}"
- name: build aarch64 image
run: docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v ~/.docker:/root/.docker -v "$(pwd)":/data homeassistant/amd64-builder -t lovelace-kindle-screensaver --aarch64 --test