Tags

Tags give the ability to mark specific points in history as being important
  • 3.3.2

    protected Release: 3.3.2
    Ships kaniko v1.29.3.
    
    ## Changed
    
    - `profile_preview` enables the 20 feature flags kaniko v1.29.3 adds to its Preview profile, among them `COPY --parents`, `COPY --exclude`, `FROM --platform` and the `MAINTAINER` instruction.
    - `profile_buildkit` enables `FF_KANIKO_SNAPSHOT_VOLUMES` and no longer `FF_KANIKO_UNPACK_XZ`, which kaniko moved to the Preview profile. Enable `profile_preview` as well to keep extracting `.tar.xz` archives in `ADD`.
    - The signing and SBOM jobs run cosign v3.1.6.
  • 3.3.1

    protected Release: 3.3.1
    Ships kaniko v1.29.2.
    
    ## Fixed
    - `build-multiarch` and `bake-multiarch`: with `matrix_extends`, each merge job waited for the builds of every combination. `matrix_merge_needs` names a hidden job of yours with the merge job's `needs` on its own combination only.
  • 3.3.0

    protected Release: 3.3.0
    Ships kaniko v1.29.2.
    
    ## Added
    - `bake` and `bake-multiarch`: `matrix_extends` and `matrix_needs` bake a `parallel:matrix`, for example one bakefile per combination. Each combination is merged in its own merge job and hands on only its own targets' images.
    
    ## Changed
    - The sign image ships cosign v3.1.5.
  • 3.2.2

    protected Release: 3.2.2
    Ships kaniko v1.29.2.
    
    ## Fixed
    - `bake-multiarch` architectures push a target only to `<first destination>-<ARCH>`. A destination given in `set` was also pushed by each architecture, so until the merge job ran it held a single-architecture image.
  • 3.2.1

    protected Release: 3.2.1
    Ships kaniko v1.29.2.
    
    ## Fixed
    - `build`, `build-multiarch`, `bake` and `bake-multiarch` stream base image layers again. `retries` no longer sets `--image-fs-extract-retry`, which in kaniko v1.29.2 downloads the whole base before extracting. `retries` covers pulls and the push. `profile_preview` resumes a dropped layer download with `FF_KANIKO_RESUME_BLOB_DOWNLOADS`.
  • 3.2.0

    protected Release: 3.2.0
    Ships kaniko v1.29.2.
    
    ## Added
    - `bake` component (experimental): builds several targets of a kaniko bakefile in one job. `targets` picks them and `set` overrides their fields.
    - `bake` hands each target's image on as `KANIKO_IMAGE_<TARGET>`, signs it like `build` does and attaches an SBOM with `sbom`. It runs in a bake image with crane and jq. A bakefile can have 10 targets with GitLab's default limit of 20 dotenv variables.
    - `bake-multiarch` component (experimental): bakes every target on each architecture, then one merge job merges each target into a multi-arch image and signs it. It takes `architectures` and `runner_tags_<arch>` like `build-multiarch`.
    
    ## Changed
    - `image` and `bootstrap_image` default to kaniko v1.29.2.
    - `profile_preview` enables nine more flags: `FF_KANIKO_ALIGN_HISTORY`, `FF_KANIKO_FROM_PREDEFINED_ARGS`, `FF_KANIKO_GLOB_CHAR_PATHS`, `FF_KANIKO_PARALLEL_GUNZIP`, `FF_KANIKO_PROBE_CREDENTIALS`, `FF_KANIKO_REPRODUCIBLE_SKIP_BASE_REWRITE`, `FF_KANIKO_RESUME_BLOB_DOWNLOADS`, `FF_KANIKO_RUN_MOUNT_BIND_RESOLVE_SYMLINK` and `FF_KANIKO_WARMER_FAIL_ON_ERROR`.
    - `build` and `build-multiarch` count one included file less toward GitLab's limit of 150 nested includes.
  • 3.1.0

    protected Release: 3.1.0
    Ships kaniko v1.29.1.
    
    ## Changed
    - `build` with `sbom: true` signs the image in `<job_name>-sbom` and creates no `<job_name>-sign`, one job per image instead of two. Replace `needs` on `<job_name>-sign` with `<job_name>-sbom`. `build-multiarch` keeps signing in the merge job.
    - A `parallel` in `build_extends` without `matrix_extends` fails at pipeline creation and names the fix. Move the `parallel:matrix` into a hidden job of its own and pass it as `matrix_extends`.
    - The signing, SBOM and merge jobs keep a signature or SBOM the same signer already attached, so a retry or a rebuild to the same digest attaches no second one. Keyless, the same signer means the same project and ref.
  • 3.0.0

    protected Release: 3.0.0
    Ships kaniko v1.29.1.
    
    - `build`, `build-multiarch`: the image is signed with cosign by default, keyless through Sigstore, which only trusts gitlab.com. On your own instance set `cosign: key` with the key in `COSIGN_PRIVATE_KEY`, and `tlog: false` to keep the signatures out of the public log, or set `cosign: "off"`.
    - `build-multiarch`: the builds run as `<job_name>:<arch>`, such as `kaniko-build:amd64`, instead of `<job_name>-<arch>`. Update `needs` and rules that name them. The `<destination>-<arch>` tags they push stay.
    - `build`, `build-multiarch`: the builds start right away, without the files or variables of earlier jobs. Add the jobs a build relies on to `needs` in `build_extends`.
    - `build-multiarch`: the merge job signs, so it runs in the merge image's `sign` target. A `merge_image` of yours without cosign needs `cosign: "off"`.
    
    - `build`, `build-multiarch`: `cosign` picks `keyless`, `key` or `off`. `build` signs in `<job_name>-sign`, `build-multiarch` in the merge job. `cosign_key` takes a key file or a KMS URI such as `hashivault://<key>`, `tlog` turns the public transparency log off, and `sign_extends` adds what a KMS login needs.
    - `build`, `build-multiarch`: `sbom: true` adds `<job_name>-sbom`, which attaches a signed SPDX SBOM to each platform.
    - `build`, `build-multiarch`: `cosign: keyless` with `tlog: false`, and `sbom: true` with `cosign: "off"`, fail when the pipeline is created.
    - `build`: `matrix_extends` and `merge_image`, as in `build-multiarch`. `matrix_needs` on both narrows the `needs` of the signing and SBOM jobs to their own matrix combination.
    - The merge image has a `sign` target with cosign v3.1.4 and syft v1.57.2.
  • 2.0.0

    protected Release: 2.0.0
    Ships kaniko v1.29.1.
    
    ## Breaking
    
    - `build-multiarch`: the `platforms` input is gone. Set `architectures` and `runner_tags_<arch>` instead, for example `runner_tags_arm64: [linux-arm]`.
    - `build-multiarch`: the builds run as `<job_name>-<arch>`, such as `kaniko-build-amd64`, instead of one `<job_name>-arch` matrix job. Update `needs` and rules that name `kaniko-build-arch`, and move overrides of that job into a template passed as `build_extends`.
    - `build-multiarch`: the arm platforms are named `arm-v7` and `arm-v6`, and their builds push `<destination>-arm-v7` and `<destination>-arm-v6`.
    - `build`, `build-multiarch`: `job_token_secret` defaults to `false`. Set it to `true` if a Dockerfile mounts `ci_job_token`.
    - `build`, `build-multiarch`: the flags the component collects are set up in `script`. A job that sets its own `before_script` and references `.kaniko-setup` must drop that reference, or every flag is passed twice.
    - `build-multiarch`: the arch builds hand their images to the merge job under new dotenv names. Read the merged image from `image_variable` instead of `KANIKO_ARCH_IMAGE_<arch>`.
    
    ## Added
    
    - `build`, `build-multiarch`: `build_extends` names a hidden job of yours that the build jobs extend, for `before_script`, `variables` and the like. `merge_extends` does the same for the merge job.
    - `build-multiarch`: `matrix_extends` names a hidden job with a `parallel:matrix`. Each combination is built on every architecture and merged into its own index, and later jobs can extend the same matrix.
    - `build-multiarch`: `architectures` picks from amd64, arm64, arm-v7, arm-v6, 386, ppc64le, s390x and riscv64, plus four `custom_arch_<n>` slots. `runner_tags_<arch>` takes several runner tags.
    - `build`, `build-multiarch`: `destination` takes several references, separated by whitespace. The image, or in `build-multiarch` the index, is pushed to all of them.
    - `build`, `build-multiarch`: with `job_token_secret`, the token is also offered as `id=netrc`, a `.netrc` for the GitLab instance.
    
    ## Fixed
    
    - `build`: every build got `--cache-from=<repo>/cache`, also with `cache: off`, and `cache: split` passed it twice.
    - `build-multiarch`: an untagged `destination` pushed the arch images to another repository. They now push `<destination>:latest-<arch>`.
    - `build-multiarch`: dotenv variables that share the `KANIKO_ARCH_IMAGE_` prefix are no longer merged as images.
    
    ## Changed
    
    - `build`, `build-multiarch`: `destination` is expanded by the job's shell after `before_script`, like `context`, so it can use variables set there. Inputs whose description ends with "Static" are expanded when GitLab creates the job.
    - `build-multiarch`: the merge image ships crane v0.22.1 on busybox 1.38.