Build docker image only on change

This commit is contained in:
Daniel Siepmann 2020-04-24 12:04:48 +02:00
parent 65a95c9dd1
commit ad92d10f12
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -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'