This commit is contained in:
parent
7db7389558
commit
239fef9f39
|
@ -1,24 +1,26 @@
|
|||
pipeline:
|
||||
build_commit:
|
||||
image: docker:stable
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
commands:
|
||||
- docker build
|
||||
--tag gitnet.fr/$CI_REPO:$CI_COMMIT_SHA
|
||||
.
|
||||
- docker push gitnet.fr/$CI_REPO:$CI_COMMIT_SHA
|
||||
image: plugins/docker
|
||||
secrets: [registry_user, registry_password]
|
||||
settings:
|
||||
username:
|
||||
from_secret: registry_user
|
||||
password:
|
||||
from_secret: registry_password
|
||||
repo: gitnet.fr/$CI_REPO
|
||||
tags: $CI_COMMIT_SHA
|
||||
when:
|
||||
event: [push]
|
||||
|
||||
build_tag:
|
||||
image: docker:stable
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
commands:
|
||||
- docker build
|
||||
--tag gitnet.fr/$CI_REPO:$CI_COMMIT_TAG
|
||||
.
|
||||
- docker push gitnet.fr/$CI_REPO:$CI_COMMIT_TAG
|
||||
image: plugins/docker
|
||||
secrets: [registry_user, registry_password]
|
||||
settings:
|
||||
username:
|
||||
from_secret: registry_user
|
||||
password:
|
||||
from_secret: registry_password
|
||||
repo: gitnet.fr/$CI_REPO
|
||||
tags: $CI_COMMIT_TAG
|
||||
when:
|
||||
event: [tag]
|
||||
|
|
Loading…
Reference in a new issue