CI: Added build cache
This commit is contained in:
parent
24765902a2
commit
e359d93db6
|
@ -184,6 +184,7 @@ build-image:
|
||||||
- /kaniko/executor --context ${CI_PROJECT_DIR}
|
- /kaniko/executor --context ${CI_PROJECT_DIR}
|
||||||
--dockerfile ${CI_PROJECT_DIR}/docker/Dockerfile
|
--dockerfile ${CI_PROJECT_DIR}/docker/Dockerfile
|
||||||
--destination "${TEST_IMAGE}"
|
--destination "${TEST_IMAGE}"
|
||||||
|
--cache=true
|
||||||
|
|
||||||
#
|
#
|
||||||
# Test
|
# Test
|
||||||
|
@ -270,7 +271,11 @@ release-image:
|
||||||
- test
|
- test
|
||||||
dependencies: [ ]
|
dependencies: [ ]
|
||||||
script:
|
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:
|
only:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue