2022-05-17 13:00:20 +02:00
|
|
|
image: alpine:latest
|
|
|
|
|
2022-08-29 15:41:44 +02:00
|
|
|
before_script: |
|
|
|
|
apk update
|
2023-02-23 08:53:00 +01:00
|
|
|
apk add python3 py3-pip npm go git tar wget
|
2024-01-02 11:57:57 +01:00
|
|
|
pip3 install requests lxml --break-system-packages
|
2022-08-29 15:41:44 +02:00
|
|
|
npm install -g pug-cli
|
2022-05-17 13:00:20 +02:00
|
|
|
|
|
|
|
pages:
|
|
|
|
stage: deploy
|
2022-08-29 15:41:44 +02:00
|
|
|
script: |
|
|
|
|
git clone --depth 1 https://github.com/LukeEmmet/html2gmi
|
|
|
|
cd html2gmi
|
|
|
|
go get github.com/LukeEmmet/html2gmi
|
|
|
|
echo "#!/bin/sh" > ./html2gmi
|
|
|
|
echo "cd $PWD; go run ." >> ./html2gmi
|
|
|
|
chmod +x ./html2gmi
|
|
|
|
PATH=$PATH:$PWD
|
|
|
|
cd ..
|
2023-02-23 08:53:00 +01:00
|
|
|
sh ./Scripts/Get.staticosoDevFixed.sh
|
2022-11-22 00:22:25 +01:00
|
|
|
sh ./Scripts/Deploy.GitLab.sh
|
|
|
|
sh ./Scripts/Deploy.Gemini.sh
|
2022-05-17 13:00:20 +02:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
|