Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Docker Image Build

on:
pull_request:
branches:
- master
- uv-migration
push:
branches:
- master
Expand Down Expand Up @@ -103,8 +107,7 @@ jobs:
run: |
uv run python -m tools.image_builder \
--build-target=${{ matrix.board }} \
--service=${{ matrix.service }} \
--push
--service=${{ matrix.service }}

- name: Inspect cache after build
run: |
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.base.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN --mount=type=cache,target=/var/cache/apt \
# https://github.com/balena-io-library/base-images/issues/562
RUN c_rehash

{% if board in ['pi1', 'pi2'] %}
{% if target_platform in ['linux/arm/v6', 'linux/arm/v7', 'linux/arm/v8'] %}
RUN pip3 install uv --break-system-packages
{% else %}
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
Expand Down
1 change: 1 addition & 0 deletions tools/image_builder/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def build_image(
'git_branch': git_branch,
'git_hash': git_hash,
'git_short_hash': git_short_hash,
'target_platform': target_platform,
**context,
},
)
Expand Down
Loading