Skip to content
Snippets Groups Projects
Commit 3ae704cd authored by Victor Azizi's avatar Victor Azizi
Browse files

tag fix

parent bf23274b
1 merge request!4Build sif
Pipeline #54520 passed
#!/bin/env sh
set -e
apptainer registry login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
apptainer registry login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "oras://$CI_REGISTRY"
for _x in containers/*/.build_sif; do
image_dir=$(dirname "$_x")
......@@ -14,9 +14,9 @@ for _x in containers/*/.build_sif; do
image_version="$CI_COMMIT_REF_SLUG"
fi
image_version="${image_version}"
image_tag="$CI_REGISTRY_IMAGE/${image_name}:${image_version}_sif"
image_tag="oras://$CI_REGISTRY_IMAGE/${image_name}:${image_version}_sif"
echo "Uploading SIF file"
apptainer push "sif_images/${image_name}.sif" oras://$image_tag
apptainer push "sif_images/${image_name}.sif" $image_tag
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment