mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-16 21:03:43 +00:00
- Stop overwriting the image's `ImageOS`. `ubuntu-latest` got `ubuntu20` on the 24.04 default image. - Derive `ImageOS` from `os-release` when the image sets none. Fall back to `ubuntu24` for `ubuntu-latest`. - Keep an `ImageOS` set in the job, step or container env. - Honor the image's `ImageOS` on Kubernetes. - Treat steps after a job timeout as cancelled. `cancelled()` and `always()` cleanup now runs. The job still fails. - Record nested reusable workflow results. Jobs that `needs:` a nested call now run. - Forward outputs through nested reusable workflows. A bad output fails the call. - Pass the job's `GITHUB_TOKEN` and `GITEA_TOKEN` to called workflows by default. An explicit mapping overrides them. - Probe a started container's uid and gid concurrently. - Cache the Docker container env from its first inspect. - Check `ImageOS` in the Kubernetes e2e test. --------- Co-authored-by: bircni <[email protected]> Reviewed-on: https://gitea.com/gitea/runner/pulls/1415 Reviewed-by: bircni <[email protected]> Co-authored-by: silverwind <[email protected]>
22 lines
686 B
YAML
22 lines
686 B
YAML
name: kubernetes
|
|
on: push
|
|
jobs:
|
|
pod:
|
|
runs-on: e2e-kubernetes
|
|
services:
|
|
web:
|
|
image: ${{ vars.E2E_SERVICE_IMAGE }}
|
|
env:
|
|
NGINX_ENTRYPOINT_QUIET_LOGS: 1
|
|
options: --health-cmd "wget -q -O /dev/null http://localhost/" --health-interval 1s
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- run: |
|
|
test -f .gitea/workflows/kubernetes.yml
|
|
echo "FROM_ENV=exported" >> "$GITHUB_ENV"
|
|
- run: |
|
|
test "$FROM_ENV" = exported
|
|
test -n "$KUBERNETES_SERVICE_HOST" -a -n "${{ runner.arch }}"
|
|
tr '\0' '\n' < /proc/1/environ | grep -qx "ImageOS=$ImageOS"
|
|
curl -fsS -o /dev/null http://web/
|