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
1
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
014c9eae
Commit
014c9eae
authored
1 month ago
by
Adrian Ciu
Browse files
Options
Downloads
Patches
Plain Diff
added tls_verify attribute in BuildCacheManager
parent
f445e82d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#60588
passed with stages
in 43 minutes and 55 seconds
Changes
1
Pipelines
2
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 @
014c9eae
...
...
@@ -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