-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy path.gitlab-ci.yml
78 lines (73 loc) · 3.01 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
---
variables:
CI_DEBUG_TRACE: "false"
REGISTRY_URL: "registry.local:5000/patrowl/docker-images"
stages:
- build
# - test
# - run
.build-push:
stage: build
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- VERSION=$(cat $CI_PROJECT_DIR/$FOLDER_PATH/VERSION | cut -d " " -f1)
- echo "Building Dockerfile $REGISTRY_URL/$STACK:$VERSION on branch $CI_COMMIT_BRANCH"
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{$(echo \"${REGISTRY_URL}\" | cut -d '/' -f1)\":{\"username\":\"$REGISTRY_USER\",\"password\":\"$REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- cat /kaniko/.docker/config.json
- /kaniko/executor --insecure --cleanup --context $CI_PROJECT_DIR/$FOLDER_PATH --dockerfile $CI_PROJECT_DIR/$FOLDER_PATH/Dockerfile --destination $REGISTRY_URL/$STACK:$VERSION
rules:
- if: $CI_COMMIT_BRANCH == "master"
changes:
- $FOLDER_PATH/VERSION
# .test-build:
# stage: test
# image:
# name: gcr.io/kaniko-project/executor:debug
# entrypoint: [""]
# script:
# - echo "Building Dockerfile $STACK on branch $CI_COMMIT_BRANCH"
# - /kaniko/executor --insecure --cleanup --context $CI_PROJECT_DIR/$FOLDER_PATH --dockerfile $CI_PROJECT_DIR/$FOLDER_PATH/Dockerfile --no-push
# rules:
# - if: $CI_COMMIT_BRANCH != "master"
# changes:
# - $FOLDER_PATH/*
# .run-job:
# stage: run
# image:
# name: $REGISTRY_URL/$STACK:$VERSION
# script:
# - echo "Running engine $STACK on branch $CI_COMMIT_BRANCH"
# rules:
# - if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH
# changes:
# - $FOLDER_PATH/VERSION
# after_script:
# - docker images | grep $STACK
# - docker stop $(docker ps -a -q --filter ancestor=$REGISTRY_URL/$STACK:$VERSION)
include:
- local: '/engines/apivoid/.apivoid.gitlab-ci.yml'
# - local: '/engines/arachni/.arachni.gitlab-ci.yml'
# - local: '/engines/burp/.burp.gitlab-ci.yml'
# - local: '/engines/censys/.censys.gitlab-ci.yml'
- local: '/engines/certstream/.certstream.gitlab-ci.yml'
- local: '/engines/cortex/.cortex.gitlab-ci.yml'
- local: '/engines/cybelangel/.cybelangel.gitlab-ci.yml'
- local: '/engines/droopescan/.droopescan.gitlab-ci.yml'
- local: '/engines/eyewitness/.eyewitness.gitlab-ci.yml'
- local: '/engines/nessus/.nessus.gitlab-ci.yml'
- local: '/engines/nmap/.nmap.gitlab-ci.yml'
- local: '/engines/openvas/.openvas.gitlab-ci.yml'
- local: '/engines/owl_code/.owl_code.gitlab-ci.yml'
- local: '/engines/owl_dns/.owl_dns.gitlab-ci.yml'
- local: '/engines/owl_leaks/.owl_leaks.gitlab-ci.yml'
- local: '/engines/owl_request/.owl_request.gitlab-ci.yml'
- local: '/engines/pastebin_monitor/.pastebin_monitor.gitlab-ci.yml'
- local: '/engines/shhgit/.shhgit.gitlab-ci.yml'
- local: '/engines/sslscan/.sslscan.gitlab-ci.yml'
- local: '/engines/ssllabs/.ssllabs.gitlab-ci.yml'
- local: '/engines/urlvoid/.urlvoid.gitlab-ci.yml'
- local: '/engines/virustotal/.virustotal.gitlab-ci.yml'
- local: '/engines/wpscan/.wpscan.gitlab-ci.yml'