forked from akto-api-security/akto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
39 lines (35 loc) · 960 Bytes
/
azure-pipelines.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
trigger:
- main # Adjust this based on the branch to trigger the pipeline
pool:
vmImage: 'ubuntu-latest' # Defines the agent where the pipeline will run
variables:
AKTO_DASHBOARD_URL: "https://app.akto.io"
AKTO_API_KEY: "<token>"
AKTO_TEST_ID: "<test-id>"
WAIT_TIME_FOR_RESULT: "1000"
stages:
- stage: Build
displayName: 'Build Stage'
jobs:
- job: BuildJob
displayName: 'Building the Project'
steps:
- script: |
echo "Compiling the code..."
echo "Compile complete."
displayName: 'Compile'
- stage: Test
displayName: 'Test Stage'
jobs:
- job: TestScan
displayName: 'Run Akto Security Test'
container: # Use container for this job
image: aktosecurity/akto-testing-scan:latest
steps:
- script: |
cd /usr/src/app
echo $(AKTO_DASHBOARD_URL)
echo $(AKTO_API_KEY)
echo $(AKTO_TEST_ID)
node index.js
displayName: 'Running Akto Test Scan'