Skip to content

Commit 92a398c

Browse files
committed
feat(debian): use docker/buid-push-action
1 parent fb67202 commit 92a398c

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/debian.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ jobs:
99
include:
1010
- runner: ubuntu-24.04
1111
arch: amd64
12+
base_image: debian:trixie-slim
1213
- runner: ubuntu-24.04-arm
1314
arch: arm64
15+
base_image: debian:trixie-slim
1416
- runner: ubuntu-24.04-riscv
1517
arch: riscv64
18+
base_image: ubuntu:noble
1619

1720
runs-on: ${{ matrix.runner }}
1821
name: Debian Build
@@ -38,10 +41,17 @@ jobs:
3841
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
3942

4043
- name: Make builder container image
41-
working-directory: debian
42-
run: |
43-
make image TARGET_ARCH=${{ matrix.arch }} \
44-
DOCKER_BUILD_FLAGS="--cache-from type=gha,scope=${{ matrix.arch }} --cache-to type=gha,scope=${{ matrix.arch }},mode=max"
44+
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
45+
with:
46+
context: debian
47+
file: debian/Dockerfile
48+
platforms: linux/${{ matrix.arch }}
49+
build-args: BASE_IMAGE=${{ matrix.base_image }}
50+
tags: cartesi/deb-builder-${{ matrix.arch }}
51+
load: true
52+
push: false
53+
cache-from: type=gha,scope=${{ matrix.arch }}
54+
cache-to: type=gha,scope=${{ matrix.arch }},mode=max
4555

4656
- name: Build packages
4757
working-directory: debian

0 commit comments

Comments
 (0)