Open IdeoG opened 1 month ago
Actual behavior Hey community, I have a multistage build, when I create a base layer with kaniko and then use it in three other images as the base image. We run kaniko build in gitlab ci using kubernetes executor.
Here is a source code of my job to build images:
build_and_push: needs: - job: tag image: name: gcr.io/kaniko-project/executor:v1.23.0-debug entrypoint: [ "" ] cache: paths: - /cache script: - >- /kaniko/executor --build-arg TAG=${TAG} --build-arg REGISTRY="${ECR_REGISTRY}" --cache=true --context "." --dockerfile "./deploy/base/Dockerfile" --destination "${ECR_REGISTRY}/backend:base-${TAG}" - >- /kaniko/executor --build-arg TAG=${TAG} --build-arg REGISTRY="${ECR_REGISTRY}" --cache=true --context "." --dockerfile "./deploy/backend/Dockerfile" --destination "${ECR_REGISTRY}/backend:${TAG}" & /kaniko/executor --build-arg TAG=${TAG} --build-arg REGISTRY="${ECR_REGISTRY}" --cache=true --context "." --dockerfile "./deploy/cron/Dockerfile" --destination "${ECR_REGISTRY}/backend:cron-${TAG}" & /kaniko/executor --build-arg TAG=${TAG} --build-arg REGISTRY="${ECR_REGISTRY}" --cache=true --context "." --dockerfile "./deploy/admin/Dockerfile" --destination "${ECR_REGISTRY}/backend:admin-${TAG}" & wait
Expected behavior
To Reproduce
Additional Information
Kaniko Image (fully qualified with digest)
Triage Notes for the Maintainers
--cache
Actual behavior Hey community, I have a multistage build, when I create a base layer with kaniko and then use it in three other images as the base image. We run kaniko build in gitlab ci using kubernetes executor.
Here is a source code of my job to build images:
Expected behavior
To Reproduce
Additional Information
Kaniko Image (fully qualified with digest)
Triage Notes for the Maintainers
--cache
flag