2018-06-15 07:46:15 +00:00
|
|
|
# Uncomment if you want to use docker-in-docker
|
|
|
|
# image: gsiupm/dockermake:latest
|
|
|
|
# services:
|
|
|
|
# - docker:dind
|
|
|
|
# When using dind, it's wise to use the overlayfs driver for
|
|
|
|
# improved performance.
|
|
|
|
|
2018-06-15 08:34:36 +00:00
|
|
|
variables:
|
|
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
|
|
|
2018-06-15 07:46:15 +00:00
|
|
|
stages:
|
|
|
|
- build
|
2018-06-15 07:54:42 +00:00
|
|
|
- test
|
2018-06-15 07:46:15 +00:00
|
|
|
- push
|
|
|
|
- deploy
|
2018-06-15 07:49:23 +00:00
|
|
|
- clean
|
2018-06-15 07:46:15 +00:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- make -e login
|
|
|
|
|
|
|
|
build:
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- make -e docker-build
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- fix-makefiles
|
|
|
|
|
2018-06-15 07:54:42 +00:00
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- make -e test
|
|
|
|
|
2018-06-15 07:46:15 +00:00
|
|
|
push:
|
|
|
|
stage: push
|
|
|
|
script:
|
|
|
|
- make -e docker-push
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- fix-makefiles
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
stage: deploy
|
|
|
|
script:
|
|
|
|
- make -e deploy
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- fix-makefiles
|
|
|
|
|
|
|
|
clean :
|
|
|
|
stage: clean
|
|
|
|
script:
|
|
|
|
- make -e clean
|
|
|
|
when: manual
|