forked from s3lph/matemat
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:
parent
87f65c84b0
commit
fbcde6acc0
2 changed files with 5 additions and 1 deletions
|
@ -24,8 +24,12 @@ build:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- docker build -t "registry.gitlab.com/s3lph/matemat:$(git rev-parse HEAD)" .
|
- 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 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:$(git rev-parse HEAD)"
|
||||||
|
- docker push registry.gitlab.com/s3lph/matemat:latest-staging
|
||||||
|
only:
|
||||||
|
- /^staging-.*$/
|
||||||
|
|
||||||
staging:
|
staging:
|
||||||
stage: staging
|
stage: staging
|
||||||
|
|
2
doc
2
doc
|
@ -1 +1 @@
|
||||||
Subproject commit c68df9d86af1d8d0ebb6b6609efeef14f7103761
|
Subproject commit 92e168a288b396a7a97d200b80affdf8690bd03d
|
Loading…
Reference in a new issue