-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
115 lines (103 loc) · 3.43 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
stages:
- build
image: docker:stable
services:
- docker:dind
before_script:
- docker login --username=altwalkerbot --password=$PASSWORD
after_script:
- docker logout
variables:
GRAPHWALKER_VERSION: "4.3.1"
ALTWALKER_VERSION: "0.3.1"
graphwalker:
stage: build
tags:
- docker
when: manual
only:
- master
script:
- docker build -t altwalker/graphwalker --build-arg GRAPHWALKER_VERSION=$GRAPHWALKER_VERSION ./graphwalker
- docker tag altwalker/graphwalker altwalker/graphwalker:$GRAPHWALKER_VERSION
- docker push altwalker/graphwalker:$GRAPHWALKER_VERSION
- docker tag altwalker/graphwalker altwalker/graphwalker:latest
- docker push altwalker/graphwalker:latest
altwalker:
stage: build
tags:
- docker
when: manual
only:
- master
script:
- docker build -t altwalker/altwalker --build-arg ALTWALKER_VERSION=$ALTWALKER_VERSION ./altwalker/base
- docker tag altwalker/altwalker altwalker/altwalker:$ALTWALKER_VERSION
- docker push altwalker/altwalker:$ALTWALKER_VERSION
- docker tag altwalker/altwalker altwalker/altwalker:latest
- docker push altwalker/altwalker:latest
altwalker-dotnet:
stage: build
tags:
- docker
when: manual
only:
- master
script:
- docker build -t altwalker/altwalker --build-arg ALTWALKER_VERSION=$ALTWALKER_VERSION --build-arg DOTNET_SDK_VERSION="2.1" ./altwalker/dotnet
- docker tag altwalker/altwalker altwalker/altwalker:$ALTWALKER_VERSION-dotnet-2.1
- docker push altwalker/altwalker:$ALTWALKER_VERSION-dotnet-2.1
- docker tag altwalker/altwalker altwalker/altwalker:latest-dotnet-2.1
- docker push altwalker/altwalker:latest-dotnet-2.1
- docker build -t altwalker/altwalker --build-arg ALTWALKER_VERSION=$ALTWALKER_VERSION --build-arg DOTNET_SDK_VERSION="3.1" ./altwalker/dotnet
- docker tag altwalker/altwalker altwalker/altwalker:$ALTWALKER_VERSION-dotnet-3.1
- docker push altwalker/altwalker:$ALTWALKER_VERSION-dotnet-3.1
- docker tag altwalker/altwalker altwalker/altwalker:latest-dotnet-3.1
- docker push altwalker/altwalker:latest-dotnet-3.1
tests-tox:
stage: build
tags:
- docker
when: manual
only:
- master
script:
- docker build -t altwalker/tests ./tests/tox
- docker tag altwalker/tests altwalker/tests:tox
- docker push altwalker/tests:tox
tests-dotnet:
stage: build
tags:
- docker
when: manual
only:
- master
script:
- docker build -t altwalker/tests --build-arg DOTNET_SDK_VERSION="2.1" --build-arg GRAPHWALKER_VERSION=$GRAPHWALKER_VERSION ./tests/dotnet
- docker tag altwalker/tests altwalker/tests:dotnet-v2.1
- docker push altwalker/tests:dotnet-v2.1
- docker build -t altwalker/tests --build-arg DOTNET_SDK_VERSION="3.1" --build-arg GRAPHWALKER_VERSION=$GRAPHWALKER_VERSION ./tests/dotnet
- docker tag altwalker/tests altwalker/tests:dotnet-v3.1
- docker push altwalker/tests:dotnet-v3.1
tests-model-visualizer:
stage: build
tags:
- docker
when: manual
only:
- master
script:
- docker build -t altwalker/tests ./tests/model-visualizer
- docker tag altwalker/tests altwalker/tests:model-visualizer
- docker push altwalker/tests:model-visualizer
demos-django-auth:
stage: build
tags:
- docker
when: manual
only:
- master
script:
- docker build -t altwalker/demos ./demos/django-auth
- docker tag altwalker/demos altwalker/demos:django-auth
- docker push altwalker/demos:django-auth