-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
45 lines (42 loc) · 931 Bytes
/
.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
stages:
- sample
- equinix
- applications
# sample deployment
sample:
stage: sample
variables:
SSH_HOST: "${SSH_HOST}"
SSH_PASSWORD: "${SSH_PASSWORD}"
only:
variables:
- $TARGET_SERVER == "sample"
trigger:
# Include the configuration file of the child pipeline
include: inventories/sample/.gitlab-ci.yml
rules:
# equinix deployment
equinix:
stage: equinix
variables:
SSH_HOST: "${SSH_HOST}"
SSH_PASSWORD: "${SSH_PASSWORD}"
only:
variables:
- $TARGET_SERVER == "equinix"
trigger:
include: inventories/equinix/.gitlab-ci.yml
# freeipa deployment
applications:
stage: applications
variables:
SSH_HOST: "${SSH_HOST}"
SSH_USER: "${SSH_USER}"
SSH_PASSWORD: "${SSH_PASSWORD}"
INVENTORY: "${INVENTORY}"
ROCKY: "${ROCKY}"
only:
variables:
- $DEPLOY_APP == "freeipa"
trigger:
include: applications/freeipa/.gitlab-ci.yml