close
Skip to content

gha/chunks: export per-runner caches in images job#472

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

gha/chunks: export per-runner caches in images job#472
igorpecovnik merged 1 commit into
mainfrom
ci/runner-cache-env-images

Conversation

@igorpecovnik

Copy link
Copy Markdown
Member

Summary

Applies the same runner-registry lookup (added for the artifacts job in #471) to the per-chunk images template. Before the image build, it looks up the current runner in github-runners.jq and exports its caches into the build environment.

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

Exported variables:

registry key env var
apt_proxy APT_PROXY_ADDR
oci_cache GHCR_MIRROR_ADDRESS
redis_cache CCACHE_REMOTE_STORAGE

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

Companion to #471 (artifacts job).

Apply the same runner-registry lookup to the per-chunk images
template, exporting the runner's caches for the image build:

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

Signed-off-by: Igor Pecovnik <igor@armbian.com>
@igorpecovnik igorpecovnik merged commit 8249cc8 into main Jun 10, 2026
1 check passed
@igorpecovnik igorpecovnik deleted the ci/runner-cache-env-images branch June 10, 2026 11:09
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