Make sure we don't run build on Docker branches/tags.

This commit is contained in:
Pete Johanson 2020-05-11 11:46:06 -04:00
parent c5e4eea3fd
commit 858abaf0d4
1 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,11 @@ variables:
CI_BUILD_IMAGE: $CI_REGISTRY_IMAGE/zmk-build
build:
rules:
- if: '$CI_COMMIT_REF_SLUG =~ /^docker/'
when: never
- when: on_success
image: $CI_BUILD_IMAGE
variables: