ci: run amd64 jobs on the ephemeral runners only #65
No files matched your search
@@ -37,7 +37,7 @@ jobs:
|
|||||||
Attach-arm64:
|
Attach-arm64:
|
||||||
# Only from trunk: the arm64 is built from the dispatched ref's Dockerfile.
|
# Only from trunk: the arm64 is built from the dispatched ref's Dockerfile.
|
||||||
if: github.ref == 'refs/heads/trunk'
|
if: github.ref == 'refs/heads/trunk'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ephemeral
|
||||||
timeout-minutes: 90
|
timeout-minutes: 90
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ jobs:
|
|||||||
# missing — see scripts/tests/lsphp-info-probe.test.sh for what went wrong
|
# missing — see scripts/tests/lsphp-info-probe.test.sh for what went wrong
|
||||||
# and why it needed a test outside the image build to catch it.
|
# and why it needed a test outside the image build to catch it.
|
||||||
Shell-Checks:
|
Shell-Checks:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ephemeral
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||||
@@ -166,7 +166,7 @@ jobs:
|
|||||||
# job below takes its matrix from here and is skipped when its list is empty.
|
# job below takes its matrix from here and is skipped when its list is empty.
|
||||||
# Push events and an empty `only` input plan the full set, as before.
|
# Push events and an empty `only` input plan the full set, as before.
|
||||||
plan:
|
plan:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ephemeral
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
outputs:
|
outputs:
|
||||||
cac: ${{ steps.plan.outputs.cac }}
|
cac: ${{ steps.plan.outputs.cac }}
|
||||||
@@ -188,7 +188,7 @@ jobs:
|
|||||||
Build-and-Push:
|
Build-and-Push:
|
||||||
needs: plan
|
needs: plan
|
||||||
if: needs.plan.outputs.cac != '[]'
|
if: needs.plan.outputs.cac != '[]'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ephemeral
|
||||||
timeout-minutes: 130
|
timeout-minutes: 130
|
||||||
strategy:
|
strategy:
|
||||||
# One PHP version failing (e.g. an EOL stream) must not cancel the
|
# One PHP version failing (e.g. an EOL stream) must not cancel the
|
||||||
@@ -396,7 +396,7 @@ jobs:
|
|||||||
Build-FPM-Images:
|
Build-FPM-Images:
|
||||||
needs: plan
|
needs: plan
|
||||||
if: needs.plan.outputs.cac_fpm != '[]'
|
if: needs.plan.outputs.cac_fpm != '[]'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ephemeral
|
||||||
timeout-minutes: 130
|
timeout-minutes: 130
|
||||||
strategy:
|
strategy:
|
||||||
# One PHP version failing (e.g. an EOL stream) must not cancel the
|
# One PHP version failing (e.g. an EOL stream) must not cancel the
|
||||||
@@ -607,7 +607,7 @@ jobs:
|
|||||||
Build-LiteSpeed-Images:
|
Build-LiteSpeed-Images:
|
||||||
needs: plan
|
needs: plan
|
||||||
if: needs.plan.outputs.cac_litespeed != '[]'
|
if: needs.plan.outputs.cac_litespeed != '[]'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ephemeral
|
||||||
# One place for the OLS base tag: digest lookup and build-args both read it.
|
# One place for the OLS base tag: digest lookup and build-args both read it.
|
||||||
# OLS_VERSION pinned to 1.8.4 (see the build step); Dockerfile default differs.
|
# OLS_VERSION pinned to 1.8.4 (see the build step); Dockerfile default differs.
|
||||||
env:
|
env:
|
||||||
@@ -769,7 +769,7 @@ jobs:
|
|||||||
Build-LSPHP-Images:
|
Build-LSPHP-Images:
|
||||||
needs: plan
|
needs: plan
|
||||||
if: needs.plan.outputs.cac_lsphp != '[]'
|
if: needs.plan.outputs.cac_lsphp != '[]'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ephemeral
|
||||||
# One place for the OLS base tag: digest lookup and build-args both read it.
|
# One place for the OLS base tag: digest lookup and build-args both read it.
|
||||||
# OLS_VERSION pinned to 1.8.4 (see the build step); Dockerfile default differs.
|
# OLS_VERSION pinned to 1.8.4 (see the build step); Dockerfile default differs.
|
||||||
env:
|
env:
|
||||||
@@ -929,7 +929,7 @@ jobs:
|
|||||||
Build-Shared-httpd:
|
Build-Shared-httpd:
|
||||||
needs: plan
|
needs: plan
|
||||||
if: needs.plan.outputs.shared_httpd == 'true'
|
if: needs.plan.outputs.shared_httpd == 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ephemeral
|
||||||
timeout-minutes: 80
|
timeout-minutes: 80
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -1115,7 +1115,7 @@ jobs:
|
|||||||
Build-Shared-OLS:
|
Build-Shared-OLS:
|
||||||
needs: plan
|
needs: plan
|
||||||
if: needs.plan.outputs.shared_ols == 'true'
|
if: needs.plan.outputs.shared_ols == 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ephemeral
|
||||||
# One place for the OLS base tag: digest lookup and build-args both read it.
|
# One place for the OLS base tag: digest lookup and build-args both read it.
|
||||||
env:
|
env:
|
||||||
OLS_VERSION: "1.8.4"
|
OLS_VERSION: "1.8.4"
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build-lsphp-from-source:
|
Build-lsphp-from-source:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ephemeral
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ run-name: mod_whp_symlink probe test for ${{ gitea.actor }}
|
|||||||
## fails the job. Run the same thing locally: docs/shared-httpd-symlink-module.md.
|
## fails the job. Run the same thing locally: docs/shared-httpd-symlink-module.md.
|
||||||
##
|
##
|
||||||
## Untrusted code: this runs PR-supplied Dockerfile/C source. Gitea has only the
|
## Untrusted code: this runs PR-supplied Dockerfile/C source. Gitea has only the
|
||||||
## shared `ubuntu-latest` runners (no separate label for untrusted jobs), the same
|
## `ephemeral` runners (a fresh LXC per job, never reused), the same label as
|
||||||
## ones the publish jobs use, so this job is hardened instead: no secrets and no registry
|
## the publish jobs, so this job is hardened anyway: no secrets and no registry
|
||||||
## login, `--pull --no-cache`, a per-run image tag, and an `if: always()`
|
## login, `--pull --no-cache`, a per-run image tag, and an `if: always()`
|
||||||
## cleanup. The publish builds (build-push.yaml) use their own fresh buildx
|
## cleanup. The publish builds (build-push.yaml) use their own fresh buildx
|
||||||
## builder with `pull: true` / `no-cache: true`, so nothing built here can be
|
## builder with `pull: true` / `no-cache: true`, so nothing built here can be
|
||||||
@@ -27,7 +27,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
Symlink-Module-Probe:
|
Symlink-Module-Probe:
|
||||||
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
|
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
|
||||||
runs-on: ubuntu-latest
|
runs-on: ephemeral
|
||||||
timeout-minutes: 40
|
timeout-minutes: 40
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|||||||
Reference in new issue
Block a user