Friendiiverse/.gitlab-ci.yml

29 lines
436 B
YAML
Raw Normal View History

2023-04-20 00:19:19 +02:00
image: alpine:latest
stages:
- test
2023-04-20 00:19:19 +02:00
- deploy
before_script: |
apk update
apk add python3 nodejs npm
2023-04-20 00:19:19 +02:00
sast:
stage: test
include:
- template: Security/SAST.gitlab-ci.yml
2023-04-20 00:19:19 +02:00
pages:
stage: deploy
script: |
npm install . --save-dev
sh ./Build.sh
2023-04-20 15:17:00 +02:00
mv ./Dist ./public
2023-04-20 18:13:47 +02:00
cp ./public/Friendiiverse.html ./public/index.html
2023-04-20 00:19:19 +02:00
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH