let d = import "defaults/build_directives.ncl" in d.make_build_directives { workspace = "{{WORKSPACE}}", artifacts = [ d.make_artifact { image = "{{IMAGE}}", dockerfile = "{{DOCKERFILE}}", context = ".", # Multi-arch: these apps deploy to the mixed-arch libre-wuji cluster (arm64 cp/ # storage/wrk-0/1 + amd64 wrk-2), so a general workload can land on either arch. platforms = ["linux/arm64", "linux/amd64"], }, ], # adr-009: the 'hcloud ephemeral-runner adapter was removed upstream. Builds now # claim ephemeral buildkitd capacity from the libre-forge fleet via the 'fleet # adapter; fleet-daemon arbitrates the claim and grants an endpoint + per-claim mTLS. adapter = d.make_adapter_ref { kind = 'fleet, fleet_ref = "libre-forge/lian-builders", nats_url = "nats://10.0.8.5:30422", consumer_identity = "lian-build", subject_prefix = "fleet.libre-forge", }, registry = d.default_zot_registry "{{REGISTRY_ENDPOINT}}" { path = "{{REGISTRY_CREDENTIAL_PATH}}", kind = 'docker_config, }, cache = d.ci_cache_policy "{{WORKSPACE}}", sccache = { bucket = "{{SCCACHE_BUCKET}}", endpoint = "{{SCCACHE_ENDPOINT}}", credential = { kind = 's3, path = "{{SCCACHE_CREDENTIAL_PATH}}" }, }, }