Skip to content

Dockerfile: Use git 2.45.2 and CI: Disable kaniko cache-copy-layers

Andreas Gnau requested to merge agnau-dockerfile-new-git-again-again into devel

This is an improved version of !251 (merged) which failed due to HTTP links suddenly turning dead (and !401 (merged) which did not work)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
commit c8558d6f385ff6da767d45752c26a546dc1b9022 ┃
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date:   Thu Feb 22 14:01:45 2024 +0100

    Dockerfile: Use git 2.45.2

    This is needed for checking whether a commit has been pushed using git
    fetch --refetch. Currently, there is no known plumbing command in git
    that achieves the same thing and --refetch added in later versions of
    git solves the problem in ./iop set-feed-rev.

    Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
commit 46fccc1d67c279b01b09fa10e103ddeda8689085 ┃
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date:   Mon Jul 1 17:55:16 2024 +0200

    CI: Disable kaniko cache-copy-layers

    Do not enable --cache-copy-layers to enable the use of
    multi-stage container image builds.

    It is not entirely clear whether --cache-copy-layers brings much of a
    benefit and when enabled, kaniko does not support multi-stage container
    image builds.

    Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
Edited by Andreas Gnau

Merge request reports