feat(act): switch to ubuntu base images
Some checks failed
act_runtime / build_images (ubuntu:24.04, ubuntu-latest) (push) Successful in 4m54s
Image builds / build_images (caddy) (push) Successful in 19s
act_runtime / build_images (ubuntu:20.04, ubuntu-latest) (push) Successful in 5m18s
Image builds / build_images (renovate) (push) Successful in 1m13s
Renovate / renovate (push) Successful in 1m9s
act_runtime / build_images (ubuntu:20.04, ubuntu-latest-amd64) (push) Failing after 11m3s
act_runtime / build_images (ubuntu:24.04, ubuntu-latest-amd64) (push) Failing after 15m24s

This commit is contained in:
Peter 2025-01-21 11:29:48 +01:00
parent 782c52f411
commit 03f41273e1
Signed by: prskr
GPG key ID: F56BED6903BC5E37
2 changed files with 10 additions and 7 deletions

View file

@ -11,8 +11,8 @@ on:
- "act_runtime/**"
env:
TAGS: '{"ubuntu-latest": {"node:20-bullseye-slim": "20.04-arm64","node:20-bookworm-slim": "arm64"},"ubuntu-latest-amd64": {"node:20-bullseye-slim": "20.04-amd64","node:20-bookworm-slim": "amd64"}}'
VERSIONS: '{"node:20-bullseye-slim": {"llvm": "13"},"node:20-bookworm-slim": {"llvm": "16"}}'
TAGS: '{"ubuntu-latest": {"ubuntu:20.04": "20.04-arm64","ubuntu:24.04": "arm64"},"ubuntu-latest-amd64": {"ubuntu:20.04": "20.04-amd64","ubuntu:24.04": "amd64"}}'
VERSIONS: '{"ubuntu:20.04": {"llvm": "13"},"ubuntu:24.04": {"llvm": "16"}}'
jobs:
build_images:
@ -22,8 +22,8 @@ jobs:
- ubuntu-latest
- ubuntu-latest-amd64
base:
- node:20-bullseye-slim
- node:20-bookworm-slim
- ubuntu:20.04
- ubuntu:24.04
runs-on: ${{ matrix.os }}
steps:
- name: Checkout

View file

@ -1,11 +1,13 @@
# syntax=docker/dockerfile:1
ARG BASE_IMAGE=node:23-bookworm-slim
ARG BASE_IMAGE=ubuntu:24.04
FROM ${BASE_IMAGE}
ARG LLVM_VERSION=16
ARG TARGETARCH
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
# common tools
RUN --mount=type=cache,target=/var/lib/apt \
--mount=type=cache,target=/var/lib/cache \
@ -25,6 +27,7 @@ RUN --mount=type=cache,target=/var/lib/apt \
libbpf-dev \
make \
unzip \
nodejs \
libgraphite2-3 \
zstd && \
ln -s /usr/lib/llvm-${LLVM_VERSION}/bin/clang /usr/bin/clang && \
@ -39,11 +42,11 @@ RUN --mount=type=cache,target=/var/lib/apt \
--mount=type=cache,target=/var/cache/apt \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" > /etc/apt/sources.list.d/github-cli.list && \
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian $(. /etc/os-release && echo "$VERSION_CODENAME") stable" > /etc/apt/sources.list.d/docker.list && \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" > /etc/apt/sources.list.d/docker.list && \
apt-get update && \
apt-get install -y \
gh \
docker-ce docker-ce-cli containerd.io docker-buildx-plugin
docker-ce-cli docker-buildx-plugin
# AWS CLI
RUN --mount=type=cache,target=/tmp \