feat: use slim node

This commit is contained in:
Jason Song
2024-04-02 12:08:21 +08:00
parent 79f62500b9
commit a02a23a64a
2 changed files with 8 additions and 8 deletions

View File

@@ -88,7 +88,7 @@ jobs:
push: true push: true
no-cache: true no-cache: true
build-args: | build-args: |
BASE_IMAGE_TAG=20-bookworm BASE_IMAGE_TAG=20-bookworm-slim
IMAGE_VERSION=${{ steps.meta.outputs.IMAGE_VERSION }} IMAGE_VERSION=${{ steps.meta.outputs.IMAGE_VERSION }}
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }} IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
IMAGE_REVISION=${{ steps.meta.outputs.IMAGE_REVISION }} IMAGE_REVISION=${{ steps.meta.outputs.IMAGE_REVISION }}
@@ -109,7 +109,7 @@ jobs:
push: true push: true
no-cache: true no-cache: true
build-args: | build-args: |
BASE_IMAGE_TAG=20-bullseye BASE_IMAGE_TAG=20-bullseye-slim
IMAGE_VERSION=${{ steps.meta.outputs.IMAGE_VERSION }} IMAGE_VERSION=${{ steps.meta.outputs.IMAGE_VERSION }}
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }} IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
IMAGE_REVISION=${{ steps.meta.outputs.IMAGE_REVISION }} IMAGE_REVISION=${{ steps.meta.outputs.IMAGE_REVISION }}

View File

@@ -26,15 +26,15 @@ They contain most of the tools needed to run workflows and are always recommende
### Slim images ### Slim images
Slim images are based on `node:20-bookworm`. Slim images are based on `node:20-*-slim`.
They contain Node.js to run basic workflows and set up more development tools if needed. They contain Node.js to run basic workflows and set up more development tools if needed.
Their size is much smaller, which is friendly to disk-space constrained runners. Their size is much smaller, which is friendly to disk-space constrained runners.
| Tag | Base | Size | Version | | Tag | Base | Size | Version |
|------------------------------------------|--------------------|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------| |------------------------------------------|-------------------------|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------|
| `gitea/runner-images:ubuntu-latest-slim` | `node:20-bookworm` | ![size](https://img.shields.io/docker/image-size/gitea/runner-images/ubuntu-slim-latest?label=size) | ![version](https://img.shields.io/docker/v/gitea/runner-images/ubuntu-slim-latest) | | `gitea/runner-images:ubuntu-latest-slim` | `node:20-bookworm-slim` | ![size](https://img.shields.io/docker/image-size/gitea/runner-images/ubuntu-slim-latest?label=size) | ![version](https://img.shields.io/docker/v/gitea/runner-images/ubuntu-slim-latest) |
| `gitea/runner-images:ubuntu-22.04-slim` | `node:20-bookworm` | ![size](https://img.shields.io/docker/image-size/gitea/runner-images/ubuntu-slim-22.04?label=size) | ![version](https://img.shields.io/docker/v/gitea/runner-images/ubuntu-slim-22.04) | | `gitea/runner-images:ubuntu-22.04-slim` | `node:20-bookworm-slim` | ![size](https://img.shields.io/docker/image-size/gitea/runner-images/ubuntu-slim-22.04?label=size) | ![version](https://img.shields.io/docker/v/gitea/runner-images/ubuntu-slim-22.04) |
| `gitea/runner-images:ubuntu-20.04-slim` | `node:20-bullseye` | ![size](https://img.shields.io/docker/image-size/gitea/runner-images/ubuntu-slim-20.04?label=size) | ![version](https://img.shields.io/docker/v/gitea/runner-images/ubuntu-slim-20.04) | | `gitea/runner-images:ubuntu-20.04-slim` | `node:20-bullseye-slim` | ![size](https://img.shields.io/docker/image-size/gitea/runner-images/ubuntu-slim-20.04?label=size) | ![version](https://img.shields.io/docker/v/gitea/runner-images/ubuntu-slim-20.04) |
### Full images ### Full images