-
Notifications
You must be signed in to change notification settings - Fork 123
47 lines (39 loc) · 1013 Bytes
/
raspberrypi.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
name: Raspberry Pi build
on:
push:
branches:
- master
- next
- 'next*'
jobs:
buildx:
name: Build with Buildx
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- run: git fetch --prune --unshallow --tags
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
platforms: linux/arm/v6
-
name: Build
id: build
run: |
mkdir build/
docker build -f Dockerfile.raspberrypi --platform linux/arm/v6 --target export -t build --output . .
ls -lah
- name: Archive artifacts (welle.io build dir)
if: always() && steps.build.outcome == 'failure'
uses: actions/upload-artifact@v2
with:
name: welle.io build dir
path: build/*
if-no-files-found: error