You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.
Modify the container jobs such that following would be possible:
def build_scan_push_image(
) -> Sequence:
# when `create_cache=True` then the returned job was initialized with a cache object
kaniko_execute = kaniko.execute(
create_cache=True,
)
# all other functions can request that cache object from the `kaniko_execute` job.
# This requires to extend the job class exposing its cache as @property.
# (In general we could expose most of a jobs attributes as @properties)
dive_scan = dive.scan(
image_from_cache=kaniko_execute.cache,
)
trivy_scan = trivy.scan_local_image(
image_from_cache=kaniko_execute.cache,
)
crane_push = crane.push(
tar_from_cache=kaniko_execute.cache,
)
What are you trying to do? What problem would this solve?
All those container methods are job generators which should make native use of the Cache class. They should create or use a Cache object, so that the user doesn't have to mess around with the use of a cache.
Did gcip help you today? Did it make you happy in any way?
Pipeline as Code is awesome.
The text was updated successfully, but these errors were encountered:
What should gcip do differently? Which functionality do you think we should add?
Current (shortened) implementation of...
Modify the container jobs such that following would be possible:
What are you trying to do? What problem would this solve?
All those container methods are job generators which should make native use of the
Cache
class. They should create or use aCache
object, so that the user doesn't have to mess around with the use of a cache.Did gcip help you today? Did it make you happy in any way?
Pipeline as Code is awesome.
The text was updated successfully, but these errors were encountered: