2023-04-20 00:19:19 +02:00
|
|
|
image: alpine:latest
|
|
|
|
|
2023-04-18 16:06:58 +02:00
|
|
|
stages:
|
|
|
|
- test
|
2023-04-20 00:19:19 +02:00
|
|
|
- deploy
|
|
|
|
|
|
|
|
before_script: |
|
|
|
|
apk update
|
2023-04-27 23:48:15 +02:00
|
|
|
apk add python3 nodejs npm
|
2023-04-20 00:19:19 +02:00
|
|
|
|
2023-04-18 16:06:58 +02:00
|
|
|
sast:
|
|
|
|
stage: test
|
|
|
|
include:
|
|
|
|
- template: Security/SAST.gitlab-ci.yml
|
2023-04-20 00:19:19 +02:00
|
|
|
|
|
|
|
pages:
|
|
|
|
stage: deploy
|
|
|
|
script: |
|
2023-04-27 23:48:15 +02:00
|
|
|
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
|
|
|
|
|