-
Notifications
You must be signed in to change notification settings - Fork 2
80 lines (71 loc) · 1.91 KB
/
docker-image.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Docker Image CI
on: workflow_dispatch
jobs:
# build-x64:
#
# runs-on: ubuntu-22.04
#
# steps:
# - uses: actions/checkout@v4
#
# - name: Docker login
# run: docker login -u meshtastic -p ${{secrets.DOCKER_TOKEN}}
#
# - name: Docker setup
# uses: docker/setup-buildx-action@v3
#
# - name: Docker build and push
# uses: docker/build-push-action@v6
# with:
# context: ./x64
# push: true
# tags: meshtastic/github-action-runner:latest
#
# build-arm64:
#
# runs-on: ubuntu-22.04
#
# steps:
# - uses: actions/checkout@v4
# - uses: docker/setup-qemu-action@v3
# name: Set up QEMU
#
# - name: Docker login
# run: docker login -u meshtastic -p ${{secrets.DOCKER_TOKEN}}
#
# - name: Docker setup
# uses: docker/setup-buildx-action@v3
# with:
# platforms: linux/arm64
#
# - name: Docker build and push
# uses: docker/build-push-action@v6
# with:
# platforms: linux/arm64
# context: ./arm64
# push: true
# tags: meshtastic/github-action-runner:latest
build-armhf:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
name: Set up QEMU
- name: Docker login
run: docker login -u meshtastic -p ${{secrets.DOCKER_TOKEN}}
- name: Docker setup
uses: docker/setup-buildx-action@v3
with:
platforms: linux/armv6
- name: build raspios
run: |
cd armhf
bash raspios.sh https://downloads.raspberrypi.com/raspios_lite_armhf/images/raspios_lite_armhf-2024-10-28/2024-10-22-raspios-bookworm-armhf-lite.img.xz bookworm lite 2024-10-22 armhf
docker context use default
- name: Docker build and push
uses: docker/build-push-action@v6
with:
platforms: linux/armv6
file: ./armhf/Dockerfile
push: true
tags: meshtastic/github-action-runner:latest