chore: Build docker image in CI when Dockerfile changes
This commit is contained in:
parent
e6650a704e
commit
0181464b1b
1 changed files with 4 additions and 2 deletions
|
@ -41,8 +41,10 @@ test_1.12.1:
|
||||||
build_image_for_commit:
|
build_image_for_commit:
|
||||||
stage: test
|
stage: test
|
||||||
image: "docker:20.10"
|
image: "docker:20.10"
|
||||||
only:
|
rules:
|
||||||
- master
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
|
- changes:
|
||||||
|
- Dockerfile
|
||||||
services:
|
services:
|
||||||
- name: docker:20.10-dind
|
- name: docker:20.10-dind
|
||||||
before_script:
|
before_script:
|
||||||
|
|
Loading…
Reference in a new issue