Skip to content

Commit ad95d1c

Browse files
authored
Merge pull request #1915 from pi-hole/development
Development -> master
2 parents f4aac36 + c7f8857 commit ad95d1c

25 files changed

+278
-255
lines changed

.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# EditorConfig is awesome: https://editorconfig.org/
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
indent_style = space
11+
indent_size = tab
12+
tab_width = 4
13+
charset = utf-8
14+
trim_trailing_whitespace = true
15+
16+
[*.yml]
17+
tab_width = 2
18+
19+
[*.md]
20+
tab_width = 2

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,31 @@ assignees: ''
1212

1313
<!-- IMPORTANT Complete the entire template please, the info gathered here is usually needed to debug issues anyway so it saves time in the long run. Incomplete/stock template issues may be closed -->
1414

15-
<!-- pick ONE: Bug,
16-
Feature Request,
17-
Run Issue (running Pi-hole container failing),
18-
Build Issue (Building image failing)
15+
<!-- pick ONE: Bug,
16+
Feature Request,
17+
Run Issue (running Pi-hole container failing),
18+
Build Issue (Building image failing)
1919
Enter in line below: -->
20-
This is a: **FILL ME IN**
20+
This is a: **FILL ME IN**
2121

2222

2323
## Details
2424
<!-- Provide a more detailed introduction to the issue or feature, try not to duplicate info from lower sections by reviewing the entire template first -->
2525

2626
## Related Issues
27-
- [ ] I have searched this repository/Pi-hole forums for existing issues and pull requests that look similar
27+
- [ ] I have searched this repository/Pi-hole forums for existing issues and pull requests that look similar
2828
<!-- Add links below! -->
2929

3030
<!------- FEATURE REQUESTS CAN STOP FILLING IN TEMPLATE HERE -------->
3131
<!------- ISSUES SHOULD FILL OUT REMAINDER OF TEMPLATE -------->
3232

33-
## How to reproduce the issue
33+
## How to reproduce the issue
3434

3535
1. Environment data
3636
* Operating System: **ENTER HERE** <!-- Debian, Ubuntu, Rasbian, etc -->
3737
* Hardware: <!-- PC, RasPi B/2B/3B/4B, Mac, Synology, QNAP, etc -->
3838
* Kernel Architecture: <!-- x86/amd64, ArmV7, ArmV8 32bit, ArmV8 64bit, etc -->
39-
* Docker Install Info and version:
39+
* Docker Install Info and version:
4040
- Software source: <!-- official docker-ce, OS provided package, Hypriot -->
4141
- Supplimentary Software: <!-- synology, portainer, etc -->
4242
* Hardware architecture: <!-- ARMv7, x86 -->

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ contact_links:
99
- name: Documentation
1010
url: https://docs.pi-hole.net
1111
about: Documentation and guides.
12-
12+

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2
22
updates:
33
# Maintain dependencies for GitHub Actions
44
- package-ecosystem: "github-actions"
5-
directories:
5+
directories:
66
- "/"
77
schedule:
88
interval: "weekly"

.github/workflows/build-and-publish.yml

Lines changed: 34 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
env:
1313
dockerhub: ${{ secrets.DOCKERHUB_NAMESPACE }}/pihole
1414
ghcr: ghcr.io/${{ github.repository_owner }}/pihole
15-
components_branch: ${{ github.event_name == 'schedule' && 'development' || 'master' }}
15+
components_branch: ${{ github.event_name == 'release' && 'master' || 'development' }}
1616

1717
jobs:
1818
build:
@@ -33,72 +33,77 @@ jobs:
3333
runner: ubuntu-24.04-arm
3434
- platform: linux/riscv64
3535
runner: ubuntu-24.04-arm
36-
36+
3737
steps:
3838
- name: Prepare name for digest up/download
3939
run: |
4040
platform=${{ matrix.platform }}
4141
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
4242
43-
- name: Checkout Repo
43+
- &checkout-repo
44+
name: Checkout Repo
4445
if: github.event_name != 'schedule'
45-
uses: actions/checkout@v4
46+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
4647

47-
- name: Checkout dev branch if scheduled
48+
- &checkout-dev
49+
name: Checkout dev branch if scheduled
4850
if: github.event_name == 'schedule'
49-
uses: actions/checkout@v4
51+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
5052
with:
5153
ref: development
5254

53-
- name: Docker meta
55+
- &docker-meta
56+
name: Docker meta
5457
id: meta
55-
uses: docker/metadata-action@v5
58+
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f #v5.8.0
5659
with:
5760
github-token: ${{ secrets.GITHUB_TOKEN }}
5861
images: |
5962
${{ env.dockerhub }}
60-
${{ env.ghcr }}
63+
${{ env.ghcr }}
6164
flavor: |
6265
latest=${{ startsWith(github.ref, 'refs/tags/') }}
6366
tags: |
6467
type=schedule,pattern=nightly
65-
type=ref,event=branch,enable=${{ github.event_name != 'schedule' }}
68+
type=raw,value=nightly,enable=${{ github.event_name == 'push' }}
6669
type=ref,event=tag
6770
68-
-
71+
- &login-dockerhub
6972
name: Login to Docker Hub
70-
uses: docker/login-action@v3
73+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef #v3.6.0
7174
with:
7275
registry: docker.io
7376
username: ${{ secrets.DOCKERHUB_USER }}
7477
password: ${{ secrets.DOCKERHUB_PASS }}
75-
-
78+
79+
- &login-ghcr
7680
name: Login to GitHub Container Registry
77-
uses: docker/login-action@v3
81+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef #v3.6.0
7882
with:
7983
registry: ghcr.io
8084
username: ${{ github.repository_owner }}
8185
password: ${{ secrets.GITHUB_TOKEN }}
8286

8387
- name: Set up QEMU
84-
uses: docker/setup-qemu-action@v3
88+
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 #v3.6.0
8589
with:
8690
platforms: ${{ matrix.platform}}
8791

88-
- name: Set up Docker Buildx
89-
uses: docker/setup-buildx-action@v3
92+
- &setup-buildx
93+
name: Set up Docker Buildx
94+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 #v3.11.1
9095

9196
- name: Build container and push by digest
9297
id: build
93-
uses: docker/build-push-action@v6
98+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 #v6.18.0
9499
with:
95100
context: ./src/
96101
platforms: ${{ matrix.platform }}
97102
build-args: |
98-
PIHOLE_DOCKER_TAG=${{ steps.meta.outputs.version }}
103+
PIHOLE_DOCKER_TAG=${{ steps.meta.outputs.version }}
99104
FTL_BRANCH=${{ env.components_branch }}
100105
CORE_BRANCH=${{ env.components_branch }}
101-
WEB_BRANCH=${{ env.components_branch }}
106+
WEB_BRANCH=${{ env.components_branch }}
102107
PADD_BRANCH=${{ env.components_branch }}
103108
labels: ${{ steps.meta.outputs.labels }}
104109
outputs: |
@@ -111,7 +116,7 @@ jobs:
111116
touch "/tmp/digests/${digest_docker#sha256:}"
112117
113118
- name: Upload digest
114-
uses: actions/upload-artifact@v4
119+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 #v5.0.0
115120
with:
116121
name: digests-${{ env.PLATFORM_PAIR }}
117122
path: /tmp/digests/*
@@ -126,55 +131,20 @@ jobs:
126131
needs:
127132
- build
128133
steps:
129-
- name: Checkout Repo
130-
if: github.event_name != 'schedule'
131-
uses: actions/checkout@v4
132-
133-
- name: Checkout dev branch if scheduled
134-
if: github.event_name == 'schedule'
135-
uses: actions/checkout@v4
136-
with:
137-
ref: development
134+
- *checkout-repo
135+
- *checkout-dev
138136

139137
- name: Download digests
140-
uses: actions/download-artifact@v4
138+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 #v6.0.0
141139
with:
142140
path: /tmp/digests
143141
pattern: digests-*
144142
merge-multiple: true
145-
146-
- name: Set up Docker Buildx
147-
uses: docker/setup-buildx-action@v3
148-
149-
- name: Docker meta
150-
id: meta
151-
uses: docker/metadata-action@v5
152-
with:
153-
github-token: ${{ secrets.GITHUB_TOKEN }}
154-
images: |
155-
${{ env.dockerhub }}
156-
${{ env.ghcr }}
157-
flavor: |
158-
latest=${{ startsWith(github.ref, 'refs/tags/') }}
159-
tags: |
160-
type=schedule,pattern=nightly
161-
type=ref,event=branch,enable=${{ github.event_name != 'schedule' }}
162-
type=ref,event=tag
163143

164-
-
165-
name: Login to Docker Hub
166-
uses: docker/login-action@v3
167-
with:
168-
registry: docker.io
169-
username: ${{ secrets.DOCKERHUB_USER }}
170-
password: ${{ secrets.DOCKERHUB_PASS }}
171-
-
172-
name: Login to GitHub Container Registry
173-
uses: docker/login-action@v3
174-
with:
175-
registry: ghcr.io
176-
username: ${{ github.repository_owner }}
177-
password: ${{ secrets.GITHUB_TOKEN }}
144+
- *setup-buildx
145+
- *docker-meta
146+
- *login-dockerhub
147+
- *login-ghcr
178148

179149
- name: Create manifest list and push (DockerHub and GitHub Container Registry)
180150
working-directory: /tmp/digests
@@ -187,4 +157,4 @@ jobs:
187157
- name: Inspect images
188158
run: |
189159
docker buildx imagetools inspect ${{ env.dockerhub }}:${{ steps.meta.outputs.version }}
190-
docker buildx imagetools inspect ${{ env.ghcr }}:${{ steps.meta.outputs.version }}
160+
docker buildx imagetools inspect ${{ env.ghcr }}:${{ steps.meta.outputs.version }}

.github/workflows/build-and-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ jobs:
2525
CI_ARCH: ${{ matrix.platform }}
2626
steps:
2727
- name: Checkout Repo
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
2929

3030
- name: Set up QEMU
31-
uses: docker/setup-qemu-action@v3
31+
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 #v3.6.0
3232

3333
- name: Set up Python
34-
uses: actions/setup-python@v5.6.0
34+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c #v6.0.0
3535
with:
3636
python-version: "3.13"
37-
37+
3838
- name: Run black formatter
3939
run: |
4040
pip install black

.github/workflows/codespell.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
steps:
1111
-
1212
name: Checkout repository
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
1414
-
1515
name: Spell-Checking
16-
uses: codespell-project/actions-codespell@master
16+
uses: codespell-project/actions-codespell@406322ec52dd7b488e48c1c4b82e2a8b3a1bf630 #v2.1
1717
with:
1818
ignore_words_file: .codespellignore

.github/workflows/editorconfig.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Editorconfig-Checker
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened, ready_for_review]
5+
6+
jobs:
7+
editorconfig-checker:
8+
if: github.event.pull_request.draft == false
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
13+
14+
- name: Get editorconfig-checker
15+
uses: editorconfig-checker/action-editorconfig-checker@4b6cd6190d435e7e084fb35e36a096e98506f7b9 # tag v2. is really out of date
16+
17+
- name: Run editorconfig-checker
18+
run: editorconfig-checker

.github/workflows/housekeeping.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
name: housekeeping
1+
name: Remove untagged images from registry
22
on:
3-
workflow_dispatch:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: "0 0 * * *"
46

57
jobs:
68
housekeeping:
79
runs-on: ubuntu-latest
810
steps:
911
-
1012
name: Delete all containers from repository without tags
11-
uses: Chizkiyahu/delete-untagged-ghcr-action@v6
13+
uses: Chizkiyahu/delete-untagged-ghcr-action@68758dd8caf1d9dbaed1fe9cc1a1f8fcea1c4cf0 #v6.1.0
1214
with:
1315
token: ${{ secrets.PAT_TOKEN }}
1416
repository_owner: ${{ github.repository_owner }}
1517
repository: ${{ github.repository }}
1618
untagged_only: true
1719
owner_type: org # or user
18-
except_untagged_multiplatform: true
20+
except_untagged_multiplatform: true

.github/workflows/merge-conflict.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Check if PRs are have merge conflicts
16-
uses: eps1lon/[email protected]
16+
uses: eps1lon/actions-label-merge-conflict@1df065ebe6e3310545d4f4c4e862e43bdca146f0 #v3.0.3
1717
with:
1818
dirtyLabel: "Merge Conflict"
1919
repoToken: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)