-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
63 lines (54 loc) · 1.82 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
workflow:
# Monitor branches and MR
rules:
- if: $CI_OPEN_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" && $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_PIPELINE_SOURCE== "merge_request_event"
- if: $CI_COMMIT_BRANCH && $CI_BRANCH && $CI_OPEN_MERGE_REQUESTS
when: never
- if: $CI_COMMIT_BRANCH
stages:
- jenkins
- istio
config_security:
image: $CI_REGISTRY/ubi8:latest
stage: jenkins
before_script:
|
yum install net-tools curl git -y
script:
|
chmod +x scripts/compliance.sh
./scripts/compliance.sh output.html jenkins/policy/config_security.txt configureSecurity/ "Limit Roles based access"
artifacts:
paths:
- results/*.txt
limit_role:
image: $CI_REGISTRY/ubi8:latest
stage: jenkins
before_script:
|
yum install net-tools curl git -y
script:
|
chmod +x scripts/compliance.sh
./scripts/compliance.sh limit_role.html jenkins/policy/limit_role.txt role-strategy/manage-roles "Limit Global Roles"
chmod +x scripts/neg_compliance.sh
./scripts/compliance.sh neg_limit_role.html jenkins/policy/neg_limit_roles.txt role-strategy/manage-roles "Negative Global Roles Test"
artifacts:
paths:
- results/*.txt
#MANUAL job need to set $BASTION and $JENKINS_SERVER variables based on GDEV IP
disable_build:
image: $CI_REGISTRY/ubi8:latest
stage: jenkins
before_script:
|
ssh-keygen -t rsa -N "" -f tester
script:
|
chmod +x scripts/server_compliance.sh
./scripts/server_compliance.sh "/app/jenkins/jenkins/secrets" "700" "Disable Builds within built-in Node"
# when: manual
artifacts:
paths:
- results/*.txt