Added CI pipeline and Docker deployment to documentation; CI: only build image for staging branches and retag the image with :latest-staging.

This commit is contained in:
s3lph 2018-07-17 20:30:40 +02:00
parent 87f65c84b0
commit fbcde6acc0
2 changed files with 5 additions and 1 deletions

View file

@ -24,8 +24,12 @@ build:
stage: build
script:
- docker build -t "registry.gitlab.com/s3lph/matemat:$(git rev-parse HEAD)" .
- docker tag "registry.gitlab.com/s3lph/matemat:$(git rev-parse HEAD)" registry.gitlab.com/s3lph/matemat:latest-staging
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_TOKEN registry.gitlab.com
- docker push "registry.gitlab.com/s3lph/matemat:$(git rev-parse HEAD)"
- docker push registry.gitlab.com/s3lph/matemat:latest-staging
only:
- /^staging-.*$/
staging:
stage: staging

2
doc

@ -1 +1 @@
Subproject commit c68df9d86af1d8d0ebb6b6609efeef14f7103761
Subproject commit 92e168a288b396a7a97d200b80affdf8690bd03d