docs: update README
Some checks failed
Build docker image / build-image (push) Failing after 1m10s

This commit is contained in:
teutat3s 2024-11-07 10:44:15 +01:00
parent 9268148099
commit 0ab0d34cd3
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -3,14 +3,23 @@
Docker image with all dependencies installed, configured to be as close to
GitHub actions as possible.
The CI builds this image on pushes to `main` as `git.pub.solar/pub-solar/actions-base-image:20-bookworm`.
Creates a `ci` user with passwordless sudo to enable nix single-user install in
a `node:20-bookworm` base image.
See this [GH issue](https://github.com/NixOS/nix/issues/1559) for additional
context.
### How to update the image
On push to the `main` branch, a job will be triggered to build the image and
push it as `git.pub.solar/pub-solar/actions-base-image:20-bookworm`.
### Local testing
Building the image locally:
```
docker build --tag git.pub.solar/pub-solar/actions-base-image:20-bookworm .
```
Creates a `ci` user with passwordless sudo to enable nix single-user install in a `node:20-bookworm` base image.
See this [GH issue](https://github.com/NixOS/nix/issues/1559) for additional context.