Skip to content

Update ftl-build container #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 1, 2025
Merged
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
26 changes: 19 additions & 7 deletions .github/workflows/ftl-build.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
name: ftl-build builds
on:
pull_request:
paths:
- 'ftl-build/**'
- '.github/workflows/ftl-build.yml'
push:
branches:
- '**'
tags:
- "**"
paths:
- 'ftl-build/**'
- '.github/workflows/ftl-build.yml'
- '.github/actions/**'
# Only run on push events to the main repository (not from forks)
pull_request:
types: [opened, synchronize, reopened]
paths:
- 'ftl-build/**'
- '.github/workflows/ftl-build.yml'
# Only run on PRs from forks
branches:
- '**'
workflow_dispatch:
schedule:
# 1:30am UTC every Sunday, has no particular significance
Expand All @@ -24,17 +27,26 @@ env:

jobs:
build-and-test:
runs-on: ubuntu-latest
if: |
(github.event_name == 'push' && github.repository == 'pi-hole/docker-base-images') ||
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
strategy:
fail-fast: false
matrix:
include:
- platform: linux/amd64
runner: ubuntu-24.04
- platform: linux/386
runner: ubuntu-24.04
- platform: linux/arm/v6
runner: ubuntu-24.04-arm
- platform: linux/arm/v7
runner: ubuntu-24.04-arm
- platform: linux/arm64/v8
runner: ubuntu-24.04-arm
- platform: linux/riscv64
runner: ubuntu-24.04
runs-on: ${{ matrix.runner }}
steps:
-
name: Prepare name for digest up/download
Expand Down
12 changes: 7 additions & 5 deletions ftl-build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
ARG CONTAINER="alpine:3.21"
ARG CONTAINER="alpine:3.22"
FROM ${CONTAINER} AS builder

ARG TARGETPLATFORM
ARG readlineversion=8.2
ARG termcapversion=1.3.1
ARG nettleversion=3.10.1
ARG mbedtlsversion=3.6.2
ARG mbedtlsversion=3.6.3.1

RUN apk add --no-cache \
alpine-sdk \
bash \
bind-tools \
curl \
gmp-dev \
gmp-static \
libcap \
linux-headers \
openssh-client \
Expand Down Expand Up @@ -40,10 +41,11 @@ RUN apk add --no-cache \
gdb \
py3-jinja2 \
py3-jsonschema \
ncurses
ncurses \
py3-dnspython

ENV STATIC true
ENV TEST true
ENV STATIC=true
ENV TEST=true

# As of Alpine 3.21 (Dec 2024), we need to patch the termcap library to include
# the standard headers as well as unistd.h for the write function
Expand Down
Loading