2022-12-07 14:58:20 +01:00
|
|
|
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]
|
|
|
|
|
2022-12-07 14:58:59 +01:00
|
|
|
build_tag:
|
2022-12-07 14:58:20 +01:00
|
|
|
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]
|