From ad92d10f1233d2dc69a68552a571e6683c70ceb3 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Fri, 24 Apr 2020 12:04:48 +0200 Subject: [PATCH] Build docker image only on change --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cdbc48a..10917e8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,8 +11,9 @@ build:image: - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com - docker build -t registry.gitlab.com/danielsiepmann/neotags . - docker push registry.gitlab.com/danielsiepmann/neotags:latest - # only: - # - master + only: + changes: + - Dockerfile lint:coding-guideline: image: 'registry.gitlab.com/danielsiepmann/neotags:latest'