From e359d93db60f169390882a9269c73620bd1b961e Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sat, 1 Apr 2023 19:21:34 +0200 Subject: [PATCH] CI: Added build cache --- .gitlab-ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d7c41ed2..f6f335c1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -184,6 +184,7 @@ build-image: - /kaniko/executor --context ${CI_PROJECT_DIR} --dockerfile ${CI_PROJECT_DIR}/docker/Dockerfile --destination "${TEST_IMAGE}" + --cache=true # # Test @@ -270,7 +271,11 @@ release-image: - test dependencies: [ ] script: - - echo -e "FROM ${TEST_IMAGE}" | /kaniko/executor --dockerfile /dev/stdin --destination "${RELEASE_IMAGE}" + - echo -e "FROM ${TEST_IMAGE}" + | /kaniko/executor + --dockerfile /dev/stdin + --destination "${RELEASE_IMAGE}" + --cache=true only: - main