Fix resource_path

This commit is contained in:
bom 2023-05-19 15:02:52 +02:00
parent 651c166920
commit 8732c374a6
2 changed files with 3 additions and 3 deletions

View file

@ -17,14 +17,14 @@ class ImageBuildService:
) )
def __copy_build_resource_file_from_package__(self, resource_name, devops: Devops): def __copy_build_resource_file_from_package__(self, resource_name, devops: Devops):
data = self.resource_api.read_resource(f"main/resources/docker/{resource_name}") data = self.resource_api.read_resource(f"src/main/resources/docker/{resource_name}")
self.file_api.write_data_to_file( self.file_api.write_data_to_file(
f"{devops.build_path()}/{resource_name}", data f"{devops.build_path()}/{resource_name}", data
) )
def __copy_build_resources_from_package__(self, devops: Devops): def __copy_build_resources_from_package__(self, devops: Devops):
self.__copy_build_resource_file_from_package__( self.__copy_build_resource_file_from_package__(
"image/resources/install_functions.sh", devops.specialized_builds[BuildType.IMAGE] "image/resources/install_functions.sh", devops
) )
def __copy_build_resources_from_dir__(self, devops: Devops): def __copy_build_resources_from_dir__(self, devops: Devops):

View file

@ -9,7 +9,7 @@ from ..domain import Devops, Image, C4k, Release, BuildFile
class ResourceApi: class ResourceApi:
def read_resource(self, path: str) -> bytes: def read_resource(self, path: str) -> bytes:
return resource_string('src', path) return resource_string('ddadevops', path)
class FileApi: class FileApi: