Skip to content

Part 1: Bump base image to Node 20 and add ghcr.io build workflow#104

Merged
graygilmore merged 1 commit intomainfrom
gg-ghcr-node20
Apr 7, 2026
Merged

Part 1: Bump base image to Node 20 and add ghcr.io build workflow#104
graygilmore merged 1 commit intomainfrom
gg-ghcr-node20

Conversation

@graygilmore
Copy link
Copy Markdown
Contributor

@graygilmore graygilmore commented Apr 7, 2026

Summary

Fixes #103 (part 1 of 2). Shopify CLI 3.93+ requires Node >=20.10.0 (engine-strict: true), which breaks the action since the base Docker image uses Node 18.

This PR updates the base image recipe and adds a CI workflow to build/push it to ghcr.io:

  • Bumps Dockerfile.base from node:18-buster to node:20-bookworm (Buster reached EOL June 2024)
  • Fixes deprecated apt-key usage for the Chrome APT repo (required for Bookworm)
  • Adds build-base-image.yml workflow to build and push the base image to ghcr.io/shopify/lighthouse-ci-action:3.0.0 on Dockerfile.base changes or manual dispatch

Why ghcr.io?

The previous base image was hosted on a personal Docker Hub account (cpclermont/lighthouse-ci-action) and hadn't been rebuilt since January 2024. Moving to ghcr.io means any repo maintainer can trigger a rebuild — the workflow uses GITHUB_TOKEN automatically.

What's next

After this merges and the workflow pushes the 3.0.0 image, a follow-up PR will update the Dockerfile and Makefile to reference ghcr.io/shopify/lighthouse-ci-action:3.0.0.

Shopify CLI 3.93+ requires Node >=20.10.0 with engine-strict, which breaks the action's Node 18 base image (fixes #103).

This is part 1 of 2 — it updates the base image recipe and adds a workflow to build/push it to ghcr.io. A follow-up PR will update the Dockerfile to reference the new ghcr.io image once it exists.

Changes:

- Dockerfile.base: node:18-buster -> node:20-bookworm (Buster reached EOL June 2024)

- Dockerfile.base: Replace deprecated apt-key with signed-by keyring for Chrome repo

- New workflow (build-base-image.yml): Builds and pushes the base image to ghcr.io/shopify/lighthouse-ci-action:3.0.0 on Dockerfile.base changes or manual dispatch

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@graygilmore graygilmore changed the title Bump Node 18 to 20 and migrate base image to ghcr.io Part 1: Bump base image to Node 20 and add ghcr.io build workflow Apr 7, 2026
@graygilmore graygilmore marked this pull request as ready for review April 7, 2026 18:02
@graygilmore graygilmore merged commit f1d8ec8 into main Apr 7, 2026
1 of 3 checks passed
@graygilmore graygilmore deleted the gg-ghcr-node20 branch April 7, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lighthouse-ci-action@v1 not running with latest Shopify CLI

2 participants