close
Skip to content

gha/chunks: export per-runner apt/ghcr/ccache env from runner registry#471

Merged
igorpecovnik merged 1 commit into
mainfrom
ci/runner-cache-env
Jun 10, 2026
Merged

gha/chunks: export per-runner apt/ghcr/ccache env from runner registry#471
igorpecovnik merged 1 commit into
mainfrom
ci/runner-cache-env

Conversation

@igorpecovnik

Copy link
Copy Markdown
Member

Summary

Adds a step to the per-chunk artifacts job that looks up the current runner in github-runners.jq and exports its caches into the build environment for later use by compile.sh.

Matching: the host's first dot-label is compared against runner.name with its instance suffix (-NN) stripped (e.g. ampere-1-01ampere-1, matches host ampere-1 or ampere-1.domain).

Exported variables:

registry key env var
apt_proxy APT_PROXY_ADDR
oci_cache GHCR_MIRROR_ADDRESS
redis_cache CCACHE_REMOTE_STORAGE

Values are also echoed to the log for debugging. Hosts with empty/missing fields export blank values without error.

Add a step to the per-chunk artifacts job that looks up the current
runner in github-runners.jq (matching the host's first label against
the runner name with its instance suffix stripped) and exports the
runner's caches to the build environment:

  apt_proxy   -> APT_PROXY_ADDR
  oci_cache   -> GHCR_MIRROR_ADDRESS
  redis_cache -> CCACHE_REMOTE_STORAGE

Values are also echoed to the log for debugging.

Signed-off-by: Igor Pecovnik <igor@armbian.com>
@igorpecovnik igorpecovnik merged commit 413f25b into main Jun 10, 2026
3 of 4 checks passed
@igorpecovnik igorpecovnik deleted the ci/runner-cache-env branch June 10, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant