nonscollectif-org/.gitlab-ci.yml

26 lines
338 B
YAML
Raw Permalink Normal View History

2022-06-27 00:06:32 +00:00
image: node:18
stages:
2022-06-27 00:06:32 +00:00
- test
- deploy
workflow:
rules:
- if: $CI_COMMIT_BRANCH
pages:
stage: deploy
script:
- npm install
2022-06-27 00:11:41 +00:00
- npm run build -- --output=public
2022-06-27 00:06:32 +00:00
artifacts:
paths:
2022-06-27 00:11:41 +00:00
- public
2022-06-27 00:06:32 +00:00
rules:
- if: $CI_COMMIT_BRANCH == "main"
sast:
stage: test
include:
- template: Security/SAST.gitlab-ci.yml