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
|
|
|
|
apk add python3
|
|
|
|
|
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: |
|
|
|
|
python3 ./Build.py
|
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
|
|
|
|
|