Official Gitea Actions runner images
Go to file
Jason Song 8d00b05299
Some checks failed
release / release-slim (push) Successful in 1m2s
release / release-default (push) Failing after 1m24s
release / release-full (push) Successful in 42m45s
Enable debug for buildx (#13)
To figure out:

https://gitea.com/gitea/runner-images/actions/runs/23/jobs/0

```text
#7 exporting to image
#7 pushing layers 41.0s done
#7 ERROR: failed to push gitea/runner-images:ubuntu-22.04: failed to copy: unexpected status from PUT request to https://registry-1.docker.io/v2/gitea/runner-images/blobs/uploads/cf46ee76-f28f-440e-bed7-2032e9c63701?_state=HbE9pgg2q0_ufbqUQgkYL-Ir0Y3_gO_c-NYLw7vWF4x7Ik5hbWUiOiJnaXRlYS9ydW5uZXItaW1hZ2VzIiwiVVVJRCI6ImNmNDZlZTc2LWYyOGYtNDQwZS1iZWQ3LTIwMzJlOWM2MzcwMSIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAyNC0wNy0xMFQxMDoxMzoyMC4wMjk0ODg1NTZaIn0%3D&digest=sha256%3A89317e7cb0cfefc3b187f1ae94e5524d9966a423d63412d43b09ea0e5aaebfd0: 400 Bad request
------
 > exporting to image:
------
ERROR: failed to solve: failed to push gitea/runner-images:ubuntu-22.04: failed to copy: unexpected status from PUT request to https://registry-1.docker.io/v2/gitea/runner-images/blobs/uploads/cf46ee76-f28f-440e-bed7-2032e9c63701?_state=HbE9pgg2q0_ufbqUQgkYL-Ir0Y3_gO_c-NYLw7vWF4x7Ik5hbWUiOiJnaXRlYS9ydW5uZXItaW1hZ2VzIiwiVVVJRCI6ImNmNDZlZTc2LWYyOGYtNDQwZS1iZWQ3LTIwMzJlOWM2MzcwMSIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAyNC0wNy0xMFQxMDoxMzoyMC4wMjk0ODg1NTZaIn0%3D&digest=sha256%3A89317e7cb0cfefc3b187f1ae94e5524d9966a423d63412d43b09ea0e5aaebfd0: 400 Bad request
::group::Reference
builder-7537891e-051a-4935-bee7-f52cb4dae178/builder-7537891e-051a-4935-bee7-f52cb4dae1780/wfpwvb7z2vc7huxnl57gi76aw
::endgroup::
::group::Check build summary support
:⚠️:Build summary is not yet supported on GHES
::endgroup::
::error::buildx failed with: ERROR: failed to solve: failed to push gitea/runner-images:ubuntu-22.04: failed to copy: unexpected status from PUT request to https://registry-1.docker.io/v2/gitea/runner-images/blobs/uploads/cf46ee76-f28f-440e-bed7-2032e9c63701?_state=HbE9pgg2q0_ufbqUQgkYL-Ir0Y3_gO_c-NYLw7vWF4x7Ik5hbWUiOiJnaXRlYS9ydW5uZXItaW1hZ2VzIiwiVVVJRCI6ImNmNDZlZTc2LWYyOGYtNDQwZS1iZWQ3LTIwMzJlOWM2MzcwMSIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAyNC0wNy0xMFQxMDoxMzoyMC4wMjk0ODg1NTZaIn0%253D&digest=sha256%253A89317e7cb0cfefc3b187f1ae94e5524d9966a423d63412d43b09ea0e5aaebfd0: 400 Bad request
```

Reviewed-on: #13
2024-07-10 10:30:26 +00:00
.gitea/workflows Enable debug for buildx (#13) 2024-07-10 10:30:26 +00:00
dockerfiles fix: copy full images 2024-04-02 11:56:11 +08:00
CONTRIBUTING.md Add license (#9) 2024-04-07 02:56:11 +00:00
DCO Add license (#9) 2024-04-07 02:56:11 +00:00
LICENSE Add license (#9) 2024-04-07 02:56:11 +00:00
README.md Add Migration to README (#5) 2024-04-02 07:37:24 +00:00

Runner Images

docker pulls docker stars

Official docker images used by act_runner to run workflows.

You can find the images on gitea/runner-images.

Currently, we have not chosen to build the image ourselves, as catthehacker/docker_images has done an excellent job of this. We don't need to reinvent the wheel.

Images are built from catthehacker/ubuntu:* or node:*. Additional packages will be installed if they are needed by act_runner.

Images

Here are three types of images: "default", "slim", and "full".

Default images

Default images are based on catthehacker/ubuntu:act-*, and are used by default in act_runner. They contain most of the tools needed to run workflows and are always recommended if your runner is not disk-space constrained.

Tag Base Size Version
ubuntu-latest catthehacker/ubuntu:act-latest size version
ubuntu-22.04 catthehacker/ubuntu:act-22.04 size version
ubuntu-20.04 catthehacker/ubuntu:act-20.04 size version

Slim images

Slim images are based on node:20-*-slim. 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.

Tag Base Size Version
ubuntu-latest-slim node:20-bookworm-slim size version
ubuntu-22.04-slim node:20-bookworm-slim size version
ubuntu-20.04-slim node:20-bullseye-slim size version

Full images

Full images are based on catthehacker/ubuntu:full-*, which contains all tools provided by GitHub Actions runners. They have huge sizes, but are useful if you need to run workflows in a GitHub Actions compatible environment. Please note that full images support amd64 architecture only.

Tag Base Size Version
ubuntu-latest-full catthehacker/ubuntu:full-latest size version
ubuntu-22.04-full catthehacker/ubuntu:full-22.04 size version
ubuntu-20.04-full catthehacker/ubuntu:full-20.04 size version

Migration

If you have already installed a runner which uses node:16-* or node:20-* as default images, you can migrate to the new images by following the steps:

  1. Ensure your Gitea's version is v1.21.0 or later.
  2. Ensure your act_runner's version is v0.2.9 or later.
  3. Update your runner's configuration file like config.yaml:
    # ...
    
    runner:
      # ...
      labels:
        - "ubuntu-latest:docker://gitea/runner-images:ubuntu-latest"
        - "ubuntu-22.04:docker://gitea/runner-images:ubuntu-22.04"
        - "ubuntu-20.04:docker://gitea/runner-images:ubuntu-20.04"
    
    container:
      # ...
      force_pull: true
    
    # ...
    
  4. Restart your runner.