mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-24 14:32:33 +00:00
ci: cache: Add arch suffix to all cache tags
As we have multi-arch builds for nearly all components, we want to ensure that all the cache tags we set have the architecture suffix, not just the `TARGET_BRANCH` one. Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
parent
8879e3bc45
commit
d46b6a3879
@ -1137,7 +1137,7 @@ handle_build() {
|
||||
|
||||
echo "${ARTEFACT_REGISTRY_PASSWORD}" | sudo oras login "${ARTEFACT_REGISTRY}" -u "${ARTEFACT_REGISTRY_USERNAME}" --password-stdin
|
||||
|
||||
tags=(latest-${TARGET_BRANCH}-$(uname -m))
|
||||
tags=(latest-"${TARGET_BRANCH}")
|
||||
if [ -n "${artefact_tag:-}" ]; then
|
||||
tags+=("${artefact_tag}")
|
||||
fi
|
||||
@ -1150,7 +1150,7 @@ handle_build() {
|
||||
for tag in "${tags[@]}"; do
|
||||
# tags can only contain lowercase and uppercase letters, digits, underscores, periods, and hyphens, so
|
||||
# filter out non-printable characers and then replace invalid printable characters with underscode
|
||||
tag=("$(echo ${tag} | tr -dc '[:print:]' | tr -c '[a-zA-Z0-9\_\.\-]' _)")
|
||||
tag=("$(echo ${tag} | tr -dc '[:print:]' | tr -c '[a-zA-Z0-9\_\.\-]' _)-$(uname -m)")
|
||||
case ${build_target} in
|
||||
kernel-nvidia-gpu)
|
||||
sudo oras push \
|
||||
|
Loading…
Reference in New Issue
Block a user