forked from Aspen-Discovery/aspen-discovery
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
44 lines (37 loc) · 1.07 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
image: docker:stable-git
services:
- docker:dind
stages:
- build
variables:
DOCKER_DRIVER: overlay2
BASEIMAGE: $DOCKER_BASEIMAGE
before_script:
- docker login -u $PAUSER -p $PATOKEN registry.gitlab.com
build:aspen:
stage: build
script:
- docker build . -f docker/Dockerfile -t $BASEIMAGE:$CI_COMMIT_TAG
- docker tag $BASEIMAGE:$CI_COMMIT_TAG $BASEIMAGE:latest
- docker push $BASEIMAGE:$CI_COMMIT_TAG
- docker push $BASEIMAGE:latest
only:
- tags
build:solr:
stage: build
script:
- docker build . -f docker/solr/Dockerfile -t $BASEIMAGE/solr:$CI_COMMIT_TAG
- docker tag $BASEIMAGE/solr:$CI_COMMIT_TAG $BASEIMAGE/solr:latest
- docker push $BASEIMAGE/solr:$CI_COMMIT_TAG
- docker push $BASEIMAGE/solr:latest
only:
- tags
build:tunnel:
stage: build
script:
- docker build . -f docker/tunnel/Dockerfile -t $BASEIMAGE/tunnel:$CI_COMMIT_TAG
- docker tag $BASEIMAGE/tunnel:$CI_COMMIT_TAG $BASEIMAGE/tunnel:latest
- docker push $BASEIMAGE/tunnel:$CI_COMMIT_TAG
- docker push $BASEIMAGE/tunnel:latest
only:
- tags