Skip to content

Commit a3fd689

Browse files
Create build-u-boot.yaml
1 parent 2dfdeaa commit a3fd689

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: build-u-boot
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
11+
build-image:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Prepare u-boot tree
19+
run: |
20+
bash build.sh setup_tree
21+
ls -R u-boot | head
22+
23+
- uses: docker/setup-qemu-action@v3
24+
- uses: docker/setup-buildx-action@v3
25+
26+
- name: Build and push
27+
uses: docker/build-push-action@v6
28+
with:
29+
platforms: linux/amd64,linux/arm64
30+
push: false
31+
tags: onion/u-boot-builder
32+
33+
- name: Build multi-arch image and push
34+
uses: docker/build-push-action@v6
35+
with:
36+
context: .
37+
file: ./Dockerfile
38+
platforms: linux/amd64,linux/arm64
39+
push: false
40+
tags: onion/u-boot-builder:latest
41+
#tags: ${{ env.REGISTRY }}/u-boot-builder:${{ github.sha }}
42+
#cache-from: type=registry,ref=${{ env.REGISTRY }}/u-boot-builder:buildcache
43+
#cache-to: type=registry,ref=${{ env.REGISTRY }}/u-boot-builder:buildcache,mode=max

0 commit comments

Comments
 (0)