-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
157 lines (140 loc) · 5.29 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
image: docker:stable
services:
- docker:dind
stages:
- build
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
FF_NETWORK_PER_BUILD: 1
#sid:
# stage: build
# script:
# - docker build -t koha/koha-testing:master-sid --no-cache --rm -f dists/sid/Dockerfile .
# - echo "$REGISTRY_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin
# - docker push koha/koha-testing:master-sid
# - docker image rm koha/koha-testing:master-sid
# only:
# - master@koha-community/koha-testing-docker
trixie:
stage: build
script:
- docker build -t koha/koha-testing:master-trixie --no-cache --rm -f dists/trixie/Dockerfile .
- echo "$REGISTRY_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin
- docker push koha/koha-testing:master-trixie
- docker image rm koha/koha-testing:master-trixie
only:
- master@koha-community/koha-testing-docker
bookworm:
stage: build
script:
- docker build -t koha/koha-testing:master-bookworm --no-cache --rm -f dists/bookworm/Dockerfile .
- echo "$REGISTRY_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin
- docker push koha/koha-testing:master-bookworm
- docker image rm koha/koha-testing:master-bookworm
only:
- master@koha-community/koha-testing-docker
bullseye:
stage: build
script:
- docker build -t koha/koha-testing:master-bullseye --no-cache --rm -f dists/bullseye/Dockerfile .
- echo "$REGISTRY_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin
- docker push koha/koha-testing:master-bullseye
- docker tag koha/koha-testing:master-bullseye koha/koha-testing:master
- docker push koha/koha-testing:master
- docker image rm koha/koha-testing:master-bullseye
only:
- master@koha-community/koha-testing-docker
buster:
stage: build
script:
- docker build -t koha/koha-testing:master-buster --no-cache --rm -f dists/buster/Dockerfile .
- echo "$REGISTRY_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin
- docker push koha/koha-testing:master-buster
- docker image rm koha/koha-testing:master-buster
only:
- master@koha-community/koha-testing-docker
#stretch:
# stage: build
# script:
# - docker build -t koha/koha-testing:master-stretch --no-cache --rm -f dists/stretch/Dockerfile .
# - echo "$REGISTRY_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin
# - docker push koha/koha-testing:master-stretch
# - docker image rm koha/koha-testing:master-stretch
# only:
# - master@koha-community/koha-testing-docker
#xenial:
# stage: build
# script:
# - docker build -t koha/koha-testing:master-xenial --no-cache --rm -f dists/xenial/Dockerfile .
# - echo "$REGISTRY_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin
# - docker push koha/koha-testing:master-xenial
# - docker image rm koha/koha-testing:master-xenial
# only:
# - master@koha-community/koha-testing-docker
#bionic:
# stage: build
# script:
# - docker build -t koha/koha-testing:master-bionic --no-cache --rm -f dists/bionic/Dockerfile .
# - echo "$REGISTRY_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin
# - docker push koha/koha-testing:master-bionic
# - docker image rm koha/koha-testing:master-bionic
# only:
# - master@koha-community/koha-testing-docker
focal:
stage: build
script:
- docker build -t koha/koha-testing:master-focal --no-cache --rm -f dists/focal/Dockerfile .
- echo "$REGISTRY_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin
- docker push koha/koha-testing:master-focal
- docker image rm koha/koha-testing:master-focal
only:
- master@koha-community/koha-testing-docker
jammy:
stage: build
script:
- docker build -t koha/koha-testing:master-jammy --no-cache --rm -f dists/jammy/Dockerfile .
- echo "$REGISTRY_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin
- docker push koha/koha-testing:master-jammy
- docker image rm koha/koha-testing:master-jammy
only:
- master@koha-community/koha-testing-docker
lunar:
stage: build
script:
- docker build -t koha/koha-testing:master-lunar --no-cache --rm -f dists/lunar/Dockerfile .
- echo "$REGISTRY_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin
- docker push koha/koha-testing:master-lunar
- docker image rm koha/koha-testing:master-lunar
only:
- master@koha-community/koha-testing-docker
# -----------------------------------
# armd64 jobs
bullseye-arm64v8:
image: arm64v8/docker
stage: build
variables:
DOCKER_TLS_CERTDIR: ""
tags:
- arm64
script:
- docker build -t koha/koha-testing:master-bullseye-arm64v8 --no-cache --rm -f dists/arm64v8/bullseye/Dockerfile .
- echo "$REGISTRY_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin
- docker push koha/koha-testing:master-bullseye-arm64v8
- docker image rm koha/koha-testing:master-bullseye-arm64v8
only:
- master@koha-community/koha-testing-docker
focal-arm64v8:
image: arm64v8/docker
stage: build
variables:
DOCKER_TLS_CERTDIR: ""
tags:
- arm64
script:
- docker build -t koha/koha-testing:master-focal-arm64v8 --no-cache --rm -f dists/arm64v8/focal/Dockerfile .
- echo "$REGISTRY_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin
- docker push koha/koha-testing:master-focal-arm64v8
- docker image rm koha/koha-testing:master-focal-arm64v8
only:
- master@koha-community/koha-testing-docker