apt-get upgrade keeps buildpack-deps from freezing linux-libc-dev at the version the base image shipped with; five CRITICAL kernel CVEs in that package alone failed the 24.04 publish. npm 11.21.3 replaces the undici 6.28.0 and brace-expansion 5.0.9 bundled with node 26.13.1, 12 HIGH findings. The npm tree is copied back into the tool cache because the in-place upgrade breaks its hardlink. Release pipeline: each main build now cuts the next patch from the newest v* tag, publishes v<semver>-ubuntu-<base> next to the moving ubuntu-<base> tags, and only tags the commit after every base has published, so a failed scan can no longer leave a half published version. The v0.0.0-dev.<sha> fallback is gone. Docs: README no longer pins tool versions that Renovate already tracks, and the image tags, versioning and commit conventions are written down.
62 lines
1.7 KiB
YAML
62 lines
1.7 KiB
YAML
name: build
|
|
|
|
on:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 120
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
base: ["26.10", "26.04", "24.04"]
|
|
env:
|
|
IMAGE: runner-images-test:${{ github.run_id }}-${{ matrix.base }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v4
|
|
|
|
- name: Build ${{ matrix.base }} amd64
|
|
uses: docker/build-push-action@v7
|
|
with:
|
|
context: .
|
|
file: dockerfiles/ubuntu.dockerfile
|
|
platforms: linux/amd64
|
|
pull: true
|
|
push: false
|
|
load: true
|
|
build-args: |
|
|
BASE_IMAGE_TAG=${{ matrix.base }}
|
|
tags: ${{ env.IMAGE }}
|
|
|
|
- name: Smoke test ${{ matrix.base }}
|
|
run: docker run --rm -i "${IMAGE}" bash -s -- ${{ matrix.base }} < tests/default.sh
|
|
|
|
- name: Scan ${{ matrix.base }} for CRITICAL vulnerabilities
|
|
run: |
|
|
docker run --rm "${IMAGE}" trivy rootfs / \
|
|
--quiet --scanners vuln --severity CRITICAL --ignore-unfixed --exit-code 1 --no-progress
|
|
|
|
- name: Report HIGH vulnerabilities for ${{ matrix.base }}
|
|
if: always()
|
|
run: |
|
|
docker run --rm "${IMAGE}" trivy rootfs / \
|
|
--quiet --scanners vuln --severity HIGH --ignore-unfixed --exit-code 1 --no-progress \
|
|
--format table || echo "HIGH findings present; not blocking the pull request"
|
|
|
|
- name: Remove test image
|
|
if: always()
|
|
run: docker image rm -f "${IMAGE}"
|