chore(ci): only test docker builds for pull requests

This is to stop building docker images twice for jobs triggered on merge and release tag
This commit is contained in:
Łukasz Mierzwa
2019-02-21 19:07:30 +00:00
parent 11d88bcd45
commit 4e632cfe4c

View File

@@ -87,6 +87,9 @@ jobs:
- git diff --exit-code
- stage: Build Docker image
# we build and push doker image on merge and tag, so this should only
# run for pull requests, to test that they don't break docker builds
if: repo = prymitive/karma AND (branch != master OR type = pull_request)
language: generic
addons:
apt: