mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-05-09 17:40:46 +00:00
CI: Factor out CACHE_DIR to improve mirror configurability
Mirrors of meta-arm may have the persistent cache directory mounted in a different place. To make it easier to configure, define this location using a single $CACHE_DIR variable. Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
+5
-4
@@ -3,6 +3,7 @@ image: ghcr.io/siemens/kas/kas:3.2
|
|||||||
variables:
|
variables:
|
||||||
CPU_REQUEST: ""
|
CPU_REQUEST: ""
|
||||||
DEFAULT_TAG: ""
|
DEFAULT_TAG: ""
|
||||||
|
CACHE_DIR: $CI_BUILDS_DIR/persist
|
||||||
# These are needed as the k8s executor doesn't respect the container entrypoint
|
# These are needed as the k8s executor doesn't respect the container entrypoint
|
||||||
# by default
|
# by default
|
||||||
FF_KUBERNETES_HONOR_ENTRYPOINT: 1
|
FF_KUBERNETES_HONOR_ENTRYPOINT: 1
|
||||||
@@ -20,11 +21,11 @@ stages:
|
|||||||
interruptible: true
|
interruptible: true
|
||||||
variables:
|
variables:
|
||||||
KAS_WORK_DIR: $CI_PROJECT_DIR/work
|
KAS_WORK_DIR: $CI_PROJECT_DIR/work
|
||||||
KAS_REPO_REF_DIR: $CI_BUILDS_DIR/persist/repos
|
KAS_REPO_REF_DIR: $CACHE_DIR/repos
|
||||||
SSTATE_DIR: $CI_BUILDS_DIR/persist/sstate
|
SSTATE_DIR: $CACHE_DIR/sstate
|
||||||
DL_DIR: $CI_BUILDS_DIR/persist/downloads
|
DL_DIR: $CACHE_DIR/downloads
|
||||||
BB_LOGCONFIG: $CI_PROJECT_DIR/ci/logging.yml
|
BB_LOGCONFIG: $CI_PROJECT_DIR/ci/logging.yml
|
||||||
TOOLCHAIN_DIR: $CI_BUILDS_DIR/persist/toolchains
|
TOOLCHAIN_DIR: $CACHE_DIR/toolchains
|
||||||
IMAGE_DIR: $CI_PROJECT_DIR/work/build/tmp/deploy/images
|
IMAGE_DIR: $CI_PROJECT_DIR/work/build/tmp/deploy/images
|
||||||
TOOLCHAIN_LINK_DIR: $CI_PROJECT_DIR/work/build/toolchains
|
TOOLCHAIN_LINK_DIR: $CI_PROJECT_DIR/work/build/toolchains
|
||||||
before_script:
|
before_script:
|
||||||
|
|||||||
Reference in New Issue
Block a user