Update .gitlab-ci.yml
This commit is contained in:
parent
8426af618c
commit
3a05c01e6b
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,8 @@ docker-tag:
|
||||||
script:
|
script:
|
||||||
- docker info
|
- docker info
|
||||||
- docker login registry.gitlab.com -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
|
- 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 build -t registry.gitlab.com/guillaumehemmen/sonar-scanner:$CI_COMMIT_REF_NAME .
|
||||||
- docker push registry.gitlab.com/guillaumehemmen/sonar-scanner:$CI_COMMIT_REF_NAME
|
- docker push registry.gitlab.com/guillaumehemmen/sonar-scanner:$CI_COMMIT_REF_NAME
|
||||||
only:
|
only:
|
||||||
|
|
Loading…
Reference in a new issue