Skip to content

Commit 61a5394

Browse files
authored
Merge pull request #103 from pi-hole/ftl-build/dnspython
Update ftl-build container
2 parents 1caff72 + e580778 commit 61a5394

File tree

2 files changed

+26
-12
lines changed

2 files changed

+26
-12
lines changed

.github/workflows/ftl-build.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
name: ftl-build builds
22
on:
3-
pull_request:
4-
paths:
5-
- 'ftl-build/**'
6-
- '.github/workflows/ftl-build.yml'
73
push:
84
branches:
95
- '**'
10-
tags:
11-
- "**"
126
paths:
137
- 'ftl-build/**'
148
- '.github/workflows/ftl-build.yml'
159
- '.github/actions/**'
10+
# Only run on push events to the main repository (not from forks)
11+
pull_request:
12+
types: [opened, synchronize, reopened]
13+
paths:
14+
- 'ftl-build/**'
15+
- '.github/workflows/ftl-build.yml'
16+
# Only run on PRs from forks
17+
branches:
18+
- '**'
1619
workflow_dispatch:
1720
schedule:
1821
# 1:30am UTC every Sunday, has no particular significance
@@ -24,17 +27,26 @@ env:
2427

2528
jobs:
2629
build-and-test:
27-
runs-on: ubuntu-latest
30+
if: |
31+
(github.event_name == 'push' && github.repository == 'pi-hole/docker-base-images') ||
32+
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
2833
strategy:
2934
fail-fast: false
3035
matrix:
3136
include:
3237
- platform: linux/amd64
38+
runner: ubuntu-24.04
3339
- platform: linux/386
40+
runner: ubuntu-24.04
3441
- platform: linux/arm/v6
42+
runner: ubuntu-24.04-arm
3543
- platform: linux/arm/v7
44+
runner: ubuntu-24.04-arm
3645
- platform: linux/arm64/v8
46+
runner: ubuntu-24.04-arm
3747
- platform: linux/riscv64
48+
runner: ubuntu-24.04
49+
runs-on: ${{ matrix.runner }}
3850
steps:
3951
-
4052
name: Prepare name for digest up/download

ftl-build/Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
ARG CONTAINER="alpine:3.21"
1+
ARG CONTAINER="alpine:3.22"
22
FROM ${CONTAINER} AS builder
33

44
ARG TARGETPLATFORM
55
ARG readlineversion=8.2
66
ARG termcapversion=1.3.1
77
ARG nettleversion=3.10.1
8-
ARG mbedtlsversion=3.6.2
8+
ARG mbedtlsversion=3.6.3.1
99

1010
RUN apk add --no-cache \
1111
alpine-sdk \
1212
bash \
1313
bind-tools \
1414
curl \
1515
gmp-dev \
16+
gmp-static \
1617
libcap \
1718
linux-headers \
1819
openssh-client \
@@ -40,10 +41,11 @@ RUN apk add --no-cache \
4041
gdb \
4142
py3-jinja2 \
4243
py3-jsonschema \
43-
ncurses
44+
ncurses \
45+
py3-dnspython
4446

45-
ENV STATIC true
46-
ENV TEST true
47+
ENV STATIC=true
48+
ENV TEST=true
4749

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

0 commit comments

Comments
 (0)