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

View file

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