mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 18:17:09 +00:00
ci: git restore-mtime .image-garden.mk
This fixes the long standing issue affecting caching of the image between the image-* jobs and the spread-* jobs. Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
This commit is contained in:
parent
e55646c41c
commit
d2d0f36244
@ -199,6 +199,10 @@ coverity:
|
|||||||
CACHE_POLICY: pull-push
|
CACHE_POLICY: pull-push
|
||||||
CACHE_COMPRESSION_LEVEL: fastest
|
CACHE_COMPRESSION_LEVEL: fastest
|
||||||
before_script:
|
before_script:
|
||||||
|
# Restore the mtime of the .image-garden.mk file. This helps make determine
|
||||||
|
# if there's actually something to do correctly. Git does not preserve the
|
||||||
|
# mtime of files during checkout.
|
||||||
|
- git restore-mtime .image-garden.mk
|
||||||
# Prepare the image in dry-run mode. This helps in debugging cache misses
|
# Prepare the image in dry-run mode. This helps in debugging cache misses
|
||||||
# when files are not cached correctly by the runner, causing the build section
|
# when files are not cached correctly by the runner, causing the build section
|
||||||
# below to always do hevy-duty work.
|
# below to always do hevy-duty work.
|
||||||
@ -265,6 +269,10 @@ image-ubuntu-cloud-24.04-x86_64:
|
|||||||
SPREAD_ARGS: "garden:$GARDEN_SYSTEM:"
|
SPREAD_ARGS: "garden:$GARDEN_SYSTEM:"
|
||||||
SPREAD_GOARCH: amd64
|
SPREAD_GOARCH: amd64
|
||||||
before_script:
|
before_script:
|
||||||
|
# Restore the mtime of the .image-garden.mk file. This helps make determine
|
||||||
|
# if there's actually something to do correctly. Git does not preserve the
|
||||||
|
# mtime of files during checkout.
|
||||||
|
- git restore-mtime .image-garden.mk
|
||||||
# Prepare the image in dry-run mode. This helps in debugging cache misses
|
# Prepare the image in dry-run mode. This helps in debugging cache misses
|
||||||
# when files are not cached correctly by the runner, causing the build section
|
# when files are not cached correctly by the runner, causing the build section
|
||||||
# below to always do hevy-duty work.
|
# below to always do hevy-duty work.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user