mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2026-02-14 23:18:32 +00:00
Include an experimental tag for... experiments.
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
4
.github/workflows/build-and-publish.yml
vendored
4
.github/workflows/build-and-publish.yml
vendored
@@ -5,6 +5,7 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- development
|
||||
- experimental
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
@@ -68,7 +69,8 @@ jobs:
|
||||
latest=${{ startsWith(github.ref, 'refs/tags/') }}
|
||||
tags: |
|
||||
type=schedule,pattern=nightly
|
||||
type=raw,value=nightly,enable=${{ github.event_name == 'push' }}
|
||||
type=raw,value=nightly,enable=${{ github.event_name == 'push' && github.ref == 'refs/heads/development' }}
|
||||
type=raw,value=experimental,enable=${{ github.event_name == 'push' && github.ref == 'refs/heads/experimental' }}
|
||||
type=ref,event=tag
|
||||
|
||||
- &login-dockerhub
|
||||
|
||||
13
src/start.sh
13
src/start.sh
@@ -20,6 +20,19 @@ start() {
|
||||
# shellcheck source=/dev/null
|
||||
. /usr/bin/bash_functions.sh
|
||||
|
||||
# Warn about experimental builds
|
||||
if [ -f /pihole.docker.tag ] && grep -q "experimental" /pihole.docker.tag; then
|
||||
echo ""
|
||||
echo " ⚠⚠⚠ WARNING ⚠⚠⚠"
|
||||
echo " [!] This is an EXPERIMENTAL build of Pi-hole Docker"
|
||||
echo " [!] This build may be unstable or contain breaking changes"
|
||||
echo " [!] Use only if you have been asked to by the Pi-hole team"
|
||||
echo " [!] Report any issues to: https://github.com/pi-hole/docker-pi-hole/issues"
|
||||
echo " ⚠⚠⚠ WARNING ⚠⚠⚠"
|
||||
echo ""
|
||||
sleep 5
|
||||
fi
|
||||
|
||||
# If the file /etc/pihole/setupVars.conf exists, but /etc/pihole/pihole.toml does not, then we are migrating v5->v6
|
||||
# FTL Will handle the migration of the config files
|
||||
if [[ -f /etc/pihole/setupVars.conf && ! -f /etc/pihole/pihole.toml ]]; then
|
||||
|
||||
Reference in New Issue
Block a user