Skip to content
Snippets Groups Projects
Commit 5e732b1d authored by Jithu Murugan's avatar Jithu Murugan
Browse files

Merge branch 'dev' into VT-70-function-Migrate-Spack-env-setup-into-ESD-repo-with-buildcache

# Conflicts:
#	dedal/build_cache/BuildCacheManager.py
parents c3d764c4 206498fa
No related branches found
No related tags found
1 merge request!4feat(spack_operation): implement setup_spack_env functionality
import glob import glob
import os import os
import time
import oras.client
from os.path import join from os.path import join
from pathlib import Path from pathlib import Path
...@@ -48,7 +51,7 @@ class BuildCacheManager(BuildCacheManagerInterface): ...@@ -48,7 +51,7 @@ class BuildCacheManager(BuildCacheManagerInterface):
rel_path = str(sub_path.relative_to(build_cache_path)).replace(str(sub_path.name), "") rel_path = str(sub_path.relative_to(build_cache_path)).replace(str(sub_path.name), "")
target = f"{self._registry_host}/{self._registry_project}/{self.cache_version}:{str(sub_path.name)}" target = f"{self._registry_host}/{self._registry_project}/{self.cache_version}:{str(sub_path.name)}"
try: try:
self._logger.info(f"Pushing folder '{sub_path}' to ORAS target '{target}' ...") self._logger.info(f"Pushing file '{sub_path}' to ORAS target '{target}' ...")
self._client.push( self._client.push(
files=[str(sub_path)], files=[str(sub_path)],
target=target, target=target,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment