2022-04-13 16:54:15 +02:00
|
|
|
image: alpine:latest
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- apk update
|
2022-04-19 00:14:44 +02:00
|
|
|
- apk add python3 py3-pip wget qt5-qtbase
|
2022-04-13 23:31:49 +02:00
|
|
|
- pip3 install -r Source/requirements.txt
|
2022-04-19 00:15:44 +02:00
|
|
|
- #wget "https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/wkhtmltopdf-0.12.6-r0.apk"
|
|
|
|
- #apk add --allow-untrusted wkhtmltopdf-0.12.6-r0.apk
|
2022-04-13 16:54:15 +02:00
|
|
|
|
|
|
|
pages:
|
|
|
|
stage: deploy
|
|
|
|
script:
|
2022-04-13 17:00:45 +02:00
|
|
|
- mkdir public
|
|
|
|
- cp -R Source/* public/
|
|
|
|
- cd public
|
2022-04-13 16:54:15 +02:00
|
|
|
- python3 Generate.py
|
2022-04-19 00:15:44 +02:00
|
|
|
- #wkhtmltoimage --height 720 --quality 0 "https://octospacc.gitlab.io/WebPinBoard/" "Screenshot.png"
|
2022-04-13 16:54:15 +02:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2022-04-13 17:00:45 +02:00
|
|
|
- public
|
2022-04-13 16:54:15 +02:00
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
|