Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dedal
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EBRAINS RI
Tech Hub
Platform
EBRAINS Software Distribution
dedal
Commits
1371a784
Commit
1371a784
authored
1 month ago
by
Jithu Murugan
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into VT-87-Enabling-coverage-report-for-the-dedal-respository
parents
4013fc46
014c9eae
No related branches found
No related tags found
1 merge request
!8
ci(dedal): correct URL for the coverage badge
Pipeline
#60589
passed with stages
in 34 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dedal/build_cache/BuildCacheManager.py
+3
-4
3 additions, 4 deletions
dedal/build_cache/BuildCacheManager.py
with
3 additions
and
4 deletions
dedal/build_cache/BuildCacheManager.py
+
3
−
4
View file @
1371a784
...
...
@@ -15,8 +15,7 @@ class BuildCacheManager(BuildCacheManagerInterface):
"""
def
__init__
(
self
,
registry_host
,
registry_project
,
registry_username
,
registry_password
,
cache_version
=
'
cache
'
,
auth_backend
=
'
basic
'
,
insecure
=
False
):
auth_backend
=
'
basic
'
,
insecure
=
False
,
tls_verify
=
True
):
self
.
_logger
=
get_logger
(
__name__
,
BuildCacheManager
.
__name__
)
self
.
_registry_project
=
registry_project
...
...
@@ -29,7 +28,7 @@ class BuildCacheManager(BuildCacheManagerInterface):
# Refer to the official OCI Registry documentation for detailed information on the available authentication methods.
# Supported authentication types may include basic authentication (username/password), token-based authentication,
self
.
_client
=
oras
.
client
.
OrasClient
(
hostname
=
self
.
_registry_host
,
auth_backend
=
auth_backend
,
insecure
=
insecure
)
insecure
=
insecure
,
tls_verify
=
tls_verify
)
self
.
_client
.
login
(
username
=
self
.
_registry_username
,
password
=
self
.
_registry_password
)
self
.
cache_version
=
cache_version
self
.
_oci_registry_path
=
f
'
{
self
.
_registry_host
}
/
{
self
.
_registry_project
}
/
{
self
.
cache_version
}
'
...
...
@@ -53,7 +52,7 @@ class BuildCacheManager(BuildCacheManagerInterface):
tag
=
str
(
sub_path
.
name
)
rel_path
=
str
(
sub_path
.
relative_to
(
build_cache_path
)).
replace
(
tag
,
""
)
target
=
f
"
{
self
.
_registry_host
}
/
{
self
.
_registry_project
}
/
{
self
.
cache_version
}
:
{
tag
}
"
upload_file
=
True
upload_file
=
True
if
update_cache
is
False
and
tag
in
tags
:
upload_file
=
False
if
upload_file
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment