This repository has been archived by the owner on Oct 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
87 lines (77 loc) · 3.4 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
stages:
- mailhog
- nginx
- php
variables:
# Use TLS https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#tls-enabled
DOCKER_HOST: tcp://docker:2376
DOCKER_TLS_CERTDIR: "/certs"
DOCKER_DRIVER: overlay2
image: docker:stable
services:
- docker:stable-dind
before_script:
- echo -n $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
mailhog-latest:
stage: mailhog
needs: []
before_script:
- echo -n $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
script:
- docker pull $CI_REGISTRY/6go-srl/docker/mailhog:latest || true
- docker build --network host --cache-from $CI_REGISTRY/6go-srl/docker/mailhog:latest -t $CI_REGISTRY/6go-srl/docker/mailhog:latest ./mailhog/
- docker push $CI_REGISTRY/6go-srl/docker/mailhog:latest
nginx-1.19:
stage: nginx
needs: []
before_script:
- echo -n $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
script:
- docker pull $CI_REGISTRY/6go-srl/docker/nginx:1.19 || true
- docker build --network host --cache-from $CI_REGISTRY/6go-srl/docker/nginx:1.19 -t $CI_REGISTRY/6go-srl/docker/nginx:1.19 -f ./nginx/1.19/Dockerfile ./nginx
- docker push $CI_REGISTRY/6go-srl/docker/nginx:1.19
nginx-1.21:
stage: nginx
needs: []
before_script:
- echo -n $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
script:
- docker pull $CI_REGISTRY/6go-srl/docker/nginx:1.21 || true
- docker build --network host --cache-from $CI_REGISTRY/6go-srl/docker/nginx:1.21 -t $CI_REGISTRY/6go-srl/docker/nginx:1.21 -f ./nginx/1.21/Dockerfile ./nginx
- docker push $CI_REGISTRY/6go-srl/docker/nginx:1.21
php-5.6:
stage: php
needs: []
before_script:
- echo -n $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
script:
- docker pull $CI_REGISTRY/6go-srl/docker/php:5.6 || true
- docker build --network host --cache-from $CI_REGISTRY/6go-srl/docker/php:5.6 -t $CI_REGISTRY/6go-srl/docker/php:5.6 -f ./php/5.6/Dockerfile ./php
- docker push $CI_REGISTRY/6go-srl/docker/php:5.6
php-7.4:
stage: php
needs: []
before_script:
- echo -n $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
script:
- docker pull $CI_REGISTRY/6go-srl/docker/php:7.4 || true
- docker build --network host --cache-from $CI_REGISTRY/6go-srl/docker/php:7.4 -t $CI_REGISTRY/6go-srl/docker/php:7.4 -f ./php/7.4/Dockerfile ./php
- docker push $CI_REGISTRY/6go-srl/docker/php:7.4
php-8.1:
stage: php
needs: []
before_script:
- echo -n $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
script:
- docker pull $CI_REGISTRY/6go-srl/docker/php:8.1 || true
- docker build --network host --cache-from $CI_REGISTRY/6go-srl/docker/php:8.1 -t $CI_REGISTRY/6go-srl/docker/php:8.1 -f ./php/8.1/Dockerfile ./php
- docker push $CI_REGISTRY/6go-srl/docker/php:8.1
php-8.2:
stage: php
needs: []
before_script:
- echo -n $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
script:
- docker pull $CI_REGISTRY/6go-srl/docker/php:8.2 || true
- docker build --network host --cache-from $CI_REGISTRY/6go-srl/docker/php:8.2 -t $CI_REGISTRY/6go-srl/docker/php:8.2 -f ./php/8.2/Dockerfile ./php
- docker push $CI_REGISTRY/6go-srl/docker/php:8.2