21 lines
451 B
YAML
21 lines
451 B
YAML
pipeline:
|
|
build_commit:
|
|
image: docker:stable
|
|
commands:
|
|
- docker build
|
|
--tag gitnet.fr/$CI_REPO:$CI_COMMIT_SHA
|
|
.
|
|
- docker push gitnet.fr/$CI_REPO:$CI_COMMIT_SHA
|
|
when:
|
|
event: [push]
|
|
|
|
build_tag:
|
|
image: docker:stable
|
|
commands:
|
|
- docker build
|
|
--tag gitnet.fr/$CI_REPO:$CI_COMMIT_TAG
|
|
.
|
|
- docker push gitnet.fr/$CI_REPO:$CI_COMMIT_TAG
|
|
when:
|
|
event: [tag]
|