Repository navigation
Community Update
@Arakos made their first contribution in #1573.
A special shoutout to @gary-wall, who landed 10 changes this release. Most notably COPY --parents, COPY --exclude and remote ADD sources from the warmer cache.
Also many thanks to @bardweasel and @hanbyeol for reporting issues fixed in this release.
We maintain kaniko integrations for GitLab CI and GitHub Actions.
buildandbuild-multiarch, with one native runner per architecturebakeandbake-multiarchfor several images from one bakefile- cosign signatures, keyless on gitlab.com, and signed SBOMs
- SLSA provenance
- build traces to Firn
- single and multi-arch images, emulated or with one runner per platform
bakefor several images from one bakefile- cosign signatures, keyless or with a key, and signed SBOMs
- SLSA provenance
- build traces to Firn
Firn is our build telemetry service for kaniko. It automatically finds problems in your builds and suggests fixes. You can use it for free.
What's Changed
Bugfixes
FF_KANIKO_REJECT_FORWARD_STAGE_REFS=falsewith--target,COPY --froma later stage pulls a registry image of the same name: #1567FF_KANIKO_REGISTRY_MAP_PATH_PREFIX=falsea mirror likeartifactory.example.com/hub.docker.comis never used: by @Arakos in #1573FF_KANIKO_ADD_RESOLVE_ONCE=falseADDwith a wildcard copies the wrong files when a matched name contains$or[: #1558FF_KANIKO_STRICT_WHITEOUTS=falseCOPY --from=<image>andRUN --mount=from=<image>see files the image deleted: #1564FF_KANIKO_LITERAL_PATH_PREFIX=falsethe.dockerignoreis ignored when the build context is/or its path contains[: #1565- a
--build-argvalue with quotes failsFROMwithcould not parse reference: #1542 COPY --chmodandADD --chmodsubtract the umask on parent directories they create: #1629- a
RUNthat leaves a symlink pointing to itself fails the build: #1628
Standardization
FF_KANIKO_SKIP_UNSET_BUILD_ARGS=false--build-arg NAMEkeeps theARGdefault whenNAMEis not set in the environment: by @gary-wall in #1551FF_KANIKO_COPY_EXCLUDE=falsesupportCOPY --excludeandADD --exclude: by @gary-wall in #1562FF_KANIKO_MAINTAINER=falsesupport theMAINTAINERinstruction: by @gary-wall in #1572FF_KANIKO_GLOBAL_BUILD_ARGS=falseFROMkeeps empty--build-argvalues and values containing=: #1561FF_KANIKO_FROM_LEX_ONCE=falseFROMuses a--build-argvalue as is, without interpreting quotes: #1542FF_KANIKO_FROM_PLATFORM=falsesupportFROM --platform: #1559FF_KANIKO_COPY_PARENTS=falsesupportCOPY --parents: by @gary-wall in #1566 #1624FF_KANIKO_SNAPSHOT_VOLUMES=falsekeep files written below aVOLUMEin the image: #1625
Caching
FF_KANIKO_WARMER_EXECUTOR_PARITY=falsewarmer also caches the images ofONBUILDandRUN --mount=from=<image>: #1545FF_KANIKO_CACHE_ADD_SOURCES=falsewarmer cachesADD --checksumdownloads for the executor: by @gary-wall in #1462FF_KANIKO_IGNORE_CACHE_DIR=falsea--cache-dirthat is not a mount is kept between stages: #1543FF_KANIKO_COPY_FROM_SKIP_DOCKERIGNORE=falseCOPY --fromserves a stale cached layer when the.dockerignoreis an allowlist: #1631
Performance
FF_KANIKO_FAST_SECUREJOIN=falsefasterSecureJoinduring layer extraction: #1285FF_KANIKO_NEW_RUN_DELETES=falsefaster firstRUNof a stage with--use-new-run: #1591FF_KANIKO_SHALLOW_SUBMODULES=false--git=depthalso applies to submodules: #1627--image-formatno longer uploads base layers again on push: #1626
Usability
- warmer
--targetcaches only the images that target needs: by @gary-wall in #1550 - hint when
COPYwrites files identical to the ones already there: #1622 - hint that apk keeps packages only in
/etc/apk/cache: #1621 - hint when
WORKDIRlies inside a mount or--ignore-path: #1621
Bake
- bake
variableblocks: #1616 - bake functions like
lowerandreplace: #1618 - bake
groupblocks: #1620 - bake rejects a matrix instance named like another block: #1619
Telemetry
Packaging
- kaniko images build only from digest-pinned bases and checksummed downloads: by @gary-wall in #1540
Maintenance
- build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.48.0 to 1.49.0: #1546 #1571 #1584
- build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.33.21 to 1.33.26: #1546 #1571 #1584 #1580
- build(deps): bump github.com/aws/aws-sdk-go-v2/feature/s3/transfermanager from 0.5.11 to 0.6.2: #1546 #1571 #1580
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.116.0 to 1.117.1: #1546 #1571 #1584
- build(deps): bump github.com/docker/cli from 29.10.0+incompatible to 29.10.1+incompatible: #1546
- build(deps): bump cloud.google.com/go/auth from 0.24.4 to 0.24.5: #1546
- build(deps): bump github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream from 1.7.27 to 1.7.29: #1546 #1571
- build(deps): bump github.com/aws/aws-sdk-go-v2/credentials from 1.21.3 to 1.21.7: #1546 #1571 #1584
- build(deps): bump github.com/aws/aws-sdk-go-v2/feature/ec2/imds from 1.20.9 to 1.20.12: #1546 #1571 #1584
- build(deps): bump github.com/aws/aws-sdk-go-v2/internal/configsources from 1.5.12 to 1.5.15: #1546 #1571 #1584
- build(deps): bump github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 from 2.8.12 to 2.8.15: #1546 #1571 #1584
- build(deps): bump github.com/aws/aws-sdk-go-v2/internal/v4a from 1.5.12 to 1.5.15: #1546 #1571 #1584
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/ecr from 1.69.0 to 1.70.1: #1546 #1578
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/ecrpublic from 1.47.12 to 1.48.1: #1546 #1577
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding from 1.13.25 to 1.13.27: #1546 #1571
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/internal/checksum from 1.11.13 to 1.11.16: #1546 #1571 #1584
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/internal/presigned-url from 1.14.12 to 1.14.15: #1546 #1571 #1584
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/internal/s3shared from 1.20.12 to 1.20.15: #1546 #1571 #1584
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/signin from 1.14.0 to 1.14.3: #1546 #1571 #1584
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/sso from 1.39.5 to 1.39.8: #1546 #1571 #1584
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/ssooidc from 1.44.5 to 1.44.8: #1546 #1571 #1584
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/sts from 1.53.0 to 1.54.0: #1546 #1571 #1584
- build(deps): bump github.com/aws/smithy-go from 1.28.9 to 1.28.13: #1546 #1552 #1584
- build(deps): bump github.com/moby/sys/user from 0.5.0 to 0.5.1: #1546
- build(deps): bump google.golang.org/api from 0.316.0 to 0.317.0: #1546
- build(deps): bump google.golang.org/genproto/googleapis/rpc from 0.0.0-20261104224025-d1e00e9f33ab to 0.0.0-20261202194610-22e8acf14972: #1546 #1590 #1599
- build(deps): bump sigstore/cosign-installer from 4.1.3 to 4.1.4: #1536
- build(deps): bump golang: #1534 #1553 #1574
- build(deps): bump github.com/ulikunitz/xz from 0.5.17 to 0.5.18: #1571
- build(deps): bump github.com/Azure/azure-sdk-for-go/sdk/storage/azblob from 1.8.3 to 1.8.4: #1584
- build(deps): bump github.com/go-git/go-git/v5 from 5.19.3 to 5.19.4: #1584
- build(deps): bump github.com/googleapis/enterprise-certificate-proxy from 0.3.25 to 0.3.26: #1584
- build(deps): bump github.com/pjbgf/sha1cd from 0.7.0 to 0.8.0: #1584
- build(deps): bump github.com/golang-jwt/jwt/v5 from 5.3.1 to 5.4.0: #1581
- build(deps): bump step-security/harden-runner from 2.23.0 to 2.24.0: #1588
- build(deps): bump github.com/gobwas/glob from 0.2.3 to 1.1.0 in /tools: #1585 #1614
- build(deps): bump github.com/OpenPeeDeeP/depguard/v2 from 2.2.1 to 2.3.0 in /tools: #1585
- build(deps): bump github.com/ghostiam/protogetter from 1.0.1 to 1.0.2 in /tools: #1585
- build(deps): bump github.com/manuelarte/funcorder from 0.6.0 to 0.6.1 in /tools: #1585
- build(deps): bump github.com/moby/sys/mountinfo from 0.7.3 to 0.7.4 in /tools: #1585
- build(deps): bump github.com/containerd/containerd/v2 from 2.4.2 to 2.4.3 in /tools: #1589
- build(deps): bump github.com/GoogleCloudPlatform/docker-credential-gcr/v2 from 2.2.2 to 2.2.3: #1590
- build(deps): bump github.com/googleapis/gax-go/v2 from 2.27.0 to 2.27.1: #1590
- build(deps): bump google.golang.org/genproto/googleapis/api from 0.0.0-20261110000943-09e21b237f2c to 0.0.0-20261202194610-22e8acf14972: #1590 #1599
- build(deps): bump go.opentelemetry.io/otel from 1.47.0 to 1.48.0: #1599 #1614
- build(deps): bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp from 1.47.0 to 1.48.0: #1599
- build(deps): bump go.opentelemetry.io/otel/sdk from 1.47.0 to 1.48.0: #1599
- build(deps): bump go.opentelemetry.io/otel/trace from 1.47.0 to 1.48.0: #1599
- build(deps): bump alpine from 3.24.4 to 3.25.0: #1598
- build(deps): bump github.com/breml/errchkjson from 0.4.2 to 0.5.0 in /tools: #1614
- build(deps): bump github.com/charmbracelet/x/ansi from 0.11.10 to 0.12.0 in /tools: #1614
- build(deps): bump github.com/dlclark/regexp2/v2 from 2.13.2 to 2.14.0 in /tools: #1614
- build(deps): bump github.com/ldez/usetesting from 0.5.0 to 0.5.1 in /tools: #1614
- build(deps): bump github.com/nishanths/exhaustive from 0.17.1 to 0.18.0 in /tools: #1614
- build(deps): bump github.com/nishanths/predeclared from 0.3.1 to 0.4.0 in /tools: #1614
- build(deps): bump github.com/sourcegraph/go-diff from 0.10.0 to 0.11.0 in /tools: #1614
- build(deps): bump github.com/spf13/afero from 1.15.0 to 1.16.1 in /tools: #1614
- build(deps): bump github.com/osscontainertools/docker-credential-acr from 1.0.2 to 1.0.3: #1633
- build(deps): bump golang.org/x/crypto from 0.59.0 to 0.60.0: #1633
- build(deps): bump go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp from 0.72.0 to 0.73.0: #1636 #1635
Fork Related
- update docs: #1532 #1556 #1615 #1630
- carry the base image env on the stage: #1586
- group all tool bumps: #1613
- lower the go directive to 1.26.8: #1632
- test improvements: #1637 #1638
- warmer tests for
RUN --mount=from=<image>: by @gary-wall in #1547
Refactorings
- share url and registry logic between warmer and executor: by @gary-wall in #1436 #1549
- share
ADDandCOPYsource resolution: by @gary-wall in #1555