mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-23 14:08:31 +00:00
ci: cache: Add tag character filtering
- Container image tags can only contain alphanumeric, period, hyphen and underscore characters, so convert characters outside of these to be underscores, to avoid having invalid tag failures Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
parent
a98b1e3afb
commit
ce24e98358
@ -1148,6 +1148,8 @@ handle_build() {
|
||||
echo "Pushing ${build_target} with tags: ${tags[*]}"
|
||||
|
||||
for tag in "${tags[@]}"; do
|
||||
# tags can only contain lowercase and uppercase letters, digits, underscores, periods, and hyphens
|
||||
tag=("$(echo ${tag} | tr -c '[a-zA-Z0-9\_\.\-]' _)")
|
||||
case ${build_target} in
|
||||
kernel-nvidia-gpu)
|
||||
sudo oras push \
|
||||
|
Loading…
Reference in New Issue
Block a user