CI: Added build cache

This commit is contained in:
Igor Scheller 2023-04-01 19:21:34 +02:00
parent 24765902a2
commit e359d93db6
1 changed files with 6 additions and 1 deletions

View File

@ -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