diff --git a/build_pipeline_generator.py b/build_pipeline_generator.py index 41a4d4881f7db08399a3ea3cb8b996e3b5efb2f3..9bc33b555d2c679ddb76a692c78c72f8a2eaa755 100644 --- a/build_pipeline_generator.py +++ b/build_pipeline_generator.py @@ -179,6 +179,9 @@ echo "{\\"auths\\":{\\"$CI_REGISTRY\\":{\\"username\\":\\"$CI_REGISTRY_USER\\",\ f"--build-arg=GIT_COMMIT_SHA={self.context.commit_sha}", f"--cache=true", f"--cache-repo=$CI_REGISTRY_IMAGE/{self.context.env_type()}_cache", + f"--cache-copy-layers=true", + f"--cache-run-layers=true", + f"--verbosity=trace", ] if self.context.commit_tag is not None: @@ -234,8 +237,7 @@ deploy-{self.target_image_name}: script: - {self._get_auth_echo()} - mkdir /workdir - - echo "FROM $CI_REGISTRY_IMAGE/{self.image_full_name()} > /workdir/Dockerfile" - - echo {self.context.commit_sha} + - echo "FROM $CI_REGISTRY_IMAGE/{self.image_full_name()}:{self.context.commit_sha}" > /workdir/Dockerfile - >- /kaniko/executor --context=dir:///workdir