Update .gitlab-ci.yml

This commit is contained in:
Guillaume "B.B." Van Hemmen 2022-03-26 19:30:08 +00:00
parent 8426af618c
commit 3a05c01e6b

View file

@ -28,6 +28,8 @@ docker-tag:
script:
- docker info
- docker login registry.gitlab.com -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
- docker build -t registry.gitlab.com/guillaumehemmen/sonar-scanner:latest .
- docker push registry.gitlab.com/guillaumehemmen/sonar-scanner:latest
- docker build -t registry.gitlab.com/guillaumehemmen/sonar-scanner:$CI_COMMIT_REF_NAME .
- docker push registry.gitlab.com/guillaumehemmen/sonar-scanner:$CI_COMMIT_REF_NAME
only: