-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcodefresh.yml
More file actions
52 lines (47 loc) · 1.13 KB
/
codefresh.yml
File metadata and controls
52 lines (47 loc) · 1.13 KB
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
version: '1.0'
steps:
main_clone:
title: Cloning main repository...
type: git-clone
repo: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}'
revision: '${{CF_REVISION}}'
git: cf_github
build_image:
title: Build image ...
type: build
image_name: codefresh/cf-compose-model
security_scan:
image: aquasec/trivy:latest
title: "Scanning lockfile for security vulnerablities"
fail_fast: false
commands:
- '! rm ${{SEC_SCAN_REPORT_FILE}} 2>/dev/null'
- |-
set -eo pipefail; \
trivy \
fs \
--ignorefile /tmp/.trivy/trivyignore \
--ignore-unfixed \
--exit-code 1 \
. \
| tee ${{SEC_SCAN_REPORT_FILE}}
unit_test:
title: Running unit tests
image: ${{build_image}}
commands:
- yarn install
- yarn run unit_test
e2e_test:
title: Running e2e tests
image: ${{build_image}}
commands:
- yarn install
- yarn run e2e_test
deploy_to_npm:
type: npm-publish
arguments:
NPM_TOKEN: '${{NPM_TOKEN}}'
DIR: '${{CF_REPO_NAME}}'
when:
branch:
only: [ master ]