Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(image): support for the --cache-from build flag #38

Commits on Jul 10, 2023

  1. feat(image): support arbitrary build flags

    includes a new config option `dockerBuildFlags` that allow injecting
    arbitrary flags to the build command. Internally, the `arg` function on
    the docker image class which is used to accumulate the `build-arg`
    options has been converted to make use of the generic flag method.
    
    Flags are normalized in this fashion.
    
    * If the key does not start with a `-` it will be prepended
    * all occurences of `_` will be re-written as `-`
    * Single letter keys are considered shorthands e.g. `p` becomes `-p`
    * Multi letter keys are considered long form e.g. `foo_bar` becomes `--foo-bar`
    * If the value is an array, the flag is repeated for each occurance
    * A `null` value may be used to omit the value and only inject the flag itself
    esatterwhite committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    dc9c577 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2023

  1. feat(image): add support for cache-from build flag

    includes support for the build flags cache-from and cache-to
    
    fixes: #35
    esatterwhite committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    f2c566f View commit details
    Browse the repository at this point in the history