Update everything to use bullseye as the default debian version
This commit is contained in:
parent
c4542d651d
commit
08627a1ba7
|
@ -14,7 +14,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
ARCH: amd64
|
ARCH: amd64
|
||||||
DEBIAN_VERSION: buster
|
DEBIAN_VERSION: bullseye
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repo
|
- name: Checkout Repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# @param ${ARCH} The architecture to build. Example: amd64
|
# @param ${ARCH} The architecture to build. Example: amd64
|
||||||
# @param ${DEBIAN_VERSION} The debian version to build. Example: buster
|
# @param ${DEBIAN_VERSION} The debian version to build. Example: bullseye
|
||||||
# @param ${ARCH_IMAGE} What the Docker Hub Image should be tagged as [default: None]
|
# @param ${ARCH_IMAGE} What the Docker Hub Image should be tagged as [default: None]
|
||||||
|
|
||||||
set -eux
|
set -eux
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM python:3.8-buster
|
FROM python:3.8-bullseye
|
||||||
|
|
||||||
# Only works for docker CLIENT (bind mounted socket)
|
# Only works for docker CLIENT (bind mounted socket)
|
||||||
COPY --from=docker:18.09.3 /usr/local/bin/docker /usr/local/bin/
|
COPY --from=docker:18.09.3 /usr/local/bin/docker /usr/local/bin/
|
||||||
|
|
|
@ -9,9 +9,9 @@ x-common-args: &common-args
|
||||||
|
|
||||||
services:
|
services:
|
||||||
amd64:
|
amd64:
|
||||||
image: pihole:${PIHOLE_DOCKER_TAG}-amd64-${DEBIAN_VERSION:-buster}
|
image: pihole:${PIHOLE_DOCKER_TAG}-amd64-${DEBIAN_VERSION:-bullseye}
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
args:
|
args:
|
||||||
<<: *common-args
|
<<: *common-args
|
||||||
PIHOLE_BASE: ghcr.io/pi-hole/docker-pi-hole-base:${DEBIAN_VERSION:-buster}-slim
|
PIHOLE_BASE: ghcr.io/pi-hole/docker-pi-hole-base:${DEBIAN_VERSION:-bullseye}-slim
|
|
@ -4,8 +4,8 @@ set -ex
|
||||||
# Script ran by Github actions for tests
|
# Script ran by Github actions for tests
|
||||||
#
|
#
|
||||||
# @environment ${ARCH} The architecture to build. Example: amd64.
|
# @environment ${ARCH} The architecture to build. Example: amd64.
|
||||||
# @environment ${DEBIAN_VERSION} Debian version to build. ('buster' or 'stretch').
|
# @environment ${DEBIAN_VERSION} Debian version to build. ('bullseye' or 'buster').
|
||||||
# @environment ${ARCH_IMAGE} What the Docker Hub Image should be tagged as. Example: pihole/pihole:master-amd64-buster
|
# @environment ${ARCH_IMAGE} What the Docker Hub Image should be tagged as. Example: pihole/pihole:master-amd64-bullseye
|
||||||
|
|
||||||
# setup qemu/variables
|
# setup qemu/variables
|
||||||
docker run --rm --privileged multiarch/qemu-user-static:register --reset > /dev/null
|
docker run --rm --privileged multiarch/qemu-user-static:register --reset > /dev/null
|
||||||
|
|
|
@ -2,14 +2,14 @@
|
||||||
set -a
|
set -a
|
||||||
|
|
||||||
# @environment ${ARCH} The architecture to build. Defaults to 'amd64'.
|
# @environment ${ARCH} The architecture to build. Defaults to 'amd64'.
|
||||||
# @environment ${DEBIAN_VERSION} Debian version to build. Defaults to 'buster'.
|
# @environment ${DEBIAN_VERSION} Debian version to build. Defaults to 'bullseye'.
|
||||||
# @environment ${DOCKER_HUB_REPO} The docker hub repo to tag images for. Defaults to 'pihole'.
|
# @environment ${DOCKER_HUB_REPO} The docker hub repo to tag images for. Defaults to 'pihole'.
|
||||||
# @environment ${DOCKER_HUB_IMAGE_NAME} The name of the resulting image. Defaults to 'pihole'.
|
# @environment ${DOCKER_HUB_IMAGE_NAME} The name of the resulting image. Defaults to 'pihole'.
|
||||||
|
|
||||||
GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD | sed "s/\//-/g")
|
GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD | sed "s/\//-/g")
|
||||||
GIT_TAG=$(git describe --tags --exact-match 2> /dev/null || true)
|
GIT_TAG=$(git describe --tags --exact-match 2> /dev/null || true)
|
||||||
|
|
||||||
DEFAULT_DEBIAN_VERSION="buster"
|
DEFAULT_DEBIAN_VERSION="bullseye"
|
||||||
|
|
||||||
if [[ -z "${ARCH}" ]]; then
|
if [[ -z "${ARCH}" ]]; then
|
||||||
ARCH="amd64"
|
ARCH="amd64"
|
||||||
|
|
|
@ -7,7 +7,7 @@ import testinfra
|
||||||
local_host = testinfra.get_host('local://')
|
local_host = testinfra.get_host('local://')
|
||||||
check_output = local_host.check_output
|
check_output = local_host.check_output
|
||||||
|
|
||||||
DEBIAN_VERSION = os.environ.get('DEBIAN_VERSION', 'buster')
|
DEBIAN_VERSION = os.environ.get('DEBIAN_VERSION', 'bullseye')
|
||||||
|
|
||||||
@pytest.fixture()
|
@pytest.fixture()
|
||||||
def run_and_stream_command_output():
|
def run_and_stream_command_output():
|
||||||
|
|
|
@ -33,7 +33,7 @@ trap "cleanup" INT TERM EXIT
|
||||||
# VOLUME TESTS
|
# VOLUME TESTS
|
||||||
|
|
||||||
# Given...
|
# Given...
|
||||||
DEBIAN_VERSION="$(DEBIAN_VERSION:-buster)"
|
DEBIAN_VERSION="$(DEBIAN_VERSION:-bullseye)"
|
||||||
IMAGE="${1:-pihole:v5.0-amd64}-${DEBIAN_VERSION}" # Default is latest build test image (generic, non release/branch tag)
|
IMAGE="${1:-pihole:v5.0-amd64}-${DEBIAN_VERSION}" # Default is latest build test image (generic, non release/branch tag)
|
||||||
VOLUMES="$(mktemp -d)" # A fresh volume directory
|
VOLUMES="$(mktemp -d)" # A fresh volume directory
|
||||||
VOL_PH="$VOLUMES/pihole"
|
VOL_PH="$VOLUMES/pihole"
|
||||||
|
|
Loading…
Reference in New Issue