-
Notifications
You must be signed in to change notification settings - Fork 16
/
ps_spec.yml
47 lines (46 loc) · 1.46 KB
/
ps_spec.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
version: 1.0
service_name: cwe-collector
stages:
-
name: PR Test
when:
- pull_request
- pull_request:
trigger_phrase: test it
image: node:20
compute_size: small
commands:
- npm install
- npm test
-
name: When Tag Created Run Coverage
when:
- tag: ['v?\d+.\d+.\d+']
image: node:20
compute_size: small
commands:
- make test
- git clone [email protected]:alertlogic/al-ps-tools.git
- cp coverage/cobertura-coverage.xml cwe-collector.coverage.xml
- bash ./al-ps-tools/helpers/collect.sh -c 'cwe-collector.coverage.xml'
- rm -rf ./al-ps-tools/
- echo done
outputs:
file: ./.ps_outputs/*
-
name: When Tag Created Run Build And Create Aritifacts
when:
- tag: ['v?\d+.\d+.\d+']
image: 422372788747.dkr.ecr.us-east-1.amazonaws.com/al-paws-collector-pipeline:latest
compute_size: small_arm
commands:
- source $NVM_DIR/nvm.sh && nvm use 20
- npm install
- make compile test package
- mkdir cwe-collector
- cp -r cfn al-cwe-collector.zip al-cwe-collector.json cwe-collector
- zip -r cwe-collector.zip cwe-collector
outputs:
file: ./cwe-collector*
packagers:
- basic