Use buildkit and inline cache to speed up builds

This commit is contained in:
Andrejs Cunskis 2022-04-29 16:19:34 +03:00
parent be7af7d540
commit e5885af2fb
No known key found for this signature in database
GPG key ID: 87CB75083F227241
3 changed files with 7 additions and 7 deletions

View file

@ -1,12 +1,16 @@
# Run test job always
.test:
stage: test
variables:
DOCKER_BUILDKIT: 1
rules:
- when: always
# Run build job only on a default branch when triggered manually
.deploy:
stage: deploy
variables:
DOCKER_BUILDKIT: 1
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: manual