feat: add debian-12.6 based image, remove broken ubuntu-2404
All checks were successful
/ post-run (push) Successful in 29s
/ pre-run (push) Successful in 1m14s
/ build-images (debian-12.6-slim) (push) Successful in 8m17s
/ build-images (ubuntu-2204) (push) Successful in 5m44s

This commit is contained in:
Marc 2024-07-29 19:56:32 -04:00
parent 0fea8d3168
commit 948294ae2f
Signed by: marc
GPG key ID: 048E042F22B5DC79
4 changed files with 5 additions and 21 deletions

View file

@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
image-name: ['ubuntu-2204', 'ubuntu-2404']
image-name: ['ubuntu-2204', 'debian-12.6-slim']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5

View file

@ -48,7 +48,7 @@ def build_image(image_name: str, tag: str, image_path: typing.Optional[pathlib.P
image_path = image_path.relative_to(cwd)
subprocess.run(
f"podman build -t {image_name}:{tag} -f {str(image_path)}",
f"podman build --no-cache -t {image_name}:{tag} -f {str(image_path)}",
shell=True,
check=True,
cwd=cwd,

View file

@ -1,7 +1,4 @@
FROM ubuntu:24.04 as skeleton
ENV NODE_VERSION "20.12.2"
ENV NVM_VERSION "0.37.2"
FROM debian:12.6-slim as skeleton
ENV DEBIAN_FRONTEND noninteractive
ENV TZ Etc/UTC
@ -15,8 +12,9 @@ RUN apt update && \
git \
xz-utils \
ca-certificates \
nodejs \
npm \
python3 \
python3-venv \
python3-pip \
pipx \
--no-install-recommends \
@ -28,17 +26,3 @@ COPY ./files/registries.conf /etc/containers/registries.conf
FROM skeleton as runner
WORKDIR /runner
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v$NVM_VERSION/install.sh | bash
RUN . $HOME/.nvm/nvm.sh && \
nvm install $NODE_VERSION && \
nvm use $NODE_VERSION && \
nvm cache clear
ENV NVM_DIR $HOME/.nvm
ENV PATH /root/.nvm/versions/node/v$NODE_VERSION/bin:$PATH
RUN node --version
RUN corepack enable