-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
50 lines (44 loc) · 1.2 KB
/
.travis.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
branches:
only:
- main
- /^travis.*$/
language: generic
env:
global:
- APP_ENV='Travis CI'
services:
- docker
jobs:
include:
- stage: hawkscan
name: Docker Compose Scan
env:
- APP_ID='3d974920-42c5-4337-a9b7-fad5fc660100'
- APP_HOST='http://nginx_test'
script: docker-compose up --abort-on-container-exit
- name: Remote Scan
env:
- APP_ID='88d8c7dc-bd14-41e7-9e92-e87483871ea9'
- APP_HOST='http://example.com'
script: >
docker run --volume $(pwd):/hawk:rw --tty
--env API_KEY="${HAWK_API_KEY}"
--env APP_ID="${APP_ID}"
--env HOST="${APP_HOST}"
--env ENV="${APP_ENV}"
--env NO_COLOR=true
stackhawk/hawkscan
- name: Localhost Scan
env:
- APP_ID='f2e3301b-3cd9-4df7-87cc-74465cebde92'
- APP_HOST='http://127.0.0.1:8080'
before_install:
- docker run -d -p 8080:80 nginx
script: >
docker run --volume $(pwd):/hawk:rw --tty --network host
--env API_KEY="${HAWK_API_KEY}"
--env APP_ID="${APP_ID}"
--env HOST="${APP_HOST}"
--env ENV="${APP_ENV}"
--env NO_COLOR=true
stackhawk/hawkscan