Skip to content

Commit af1498e

Browse files
committed
πŸ§‘β€πŸ’» Add option to Steer debian version. Also add Trixie build
1 parent a0ac5d9 commit af1498e

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

β€Ž.github/workflows/build-container.ymlβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
strategy:
2525
matrix:
2626
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
27+
debian-version: ["bookworm", "trixie"]
2728

2829
steps:
2930
- name: Checkout repository
@@ -45,7 +46,7 @@ jobs:
4546
id: image_tag_lower
4647
# Black magic fuckery to ensure lowercase string as docker tag
4748
run: |
48-
IMAGE_TAG=$(echo "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.python-version }}" | awk '{print tolower($0)}')
49+
IMAGE_TAG=$(echo "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.python-version }}-${{ matrix.debian-version }}" | awk '{print tolower($0)}')
4950
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_OUTPUT
5051
5152
- name: Build and push Docker image
@@ -59,3 +60,4 @@ jobs:
5960
cache-to: type=gha,mode=max
6061
build-args: |
6162
PYTHONVERSION=${{ matrix.python-version }}
63+
DEBIANVERSION=${{ matrix.debian-version }}

β€ŽDockerfileβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
# Basic Python package with Company CAs and sudo User
33
ARG USERNAME=ContainerUser
44
ARG PYTHONVERSION=3.11
5+
ARG DEBIANVERSION=bookworm
56

67
# ############################################################################################################
7-
FROM debian:bookworm AS base
8+
FROM debian:${DEBIANVERSION} AS base
89

910
ENV PYTHONFAULTHANDLER=1 \
1011
PYTHONUNBUFFERED=1 \

0 commit comments

Comments
Β (0)