This repository has been archived on 2022-06-23. You can view files and clone it, but cannot push or open issues/pull-requests.
2021-12-06 21:09:26 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: exec
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2022-01-21 12:21:24 +02:00
|
|
|
#- name: translate
|
|
|
|
# commands:
|
|
|
|
# - |
|
|
|
|
# for inputFile in $$( ls -p src/ru/src | grep -v / )
|
|
|
|
# do
|
|
|
|
# python3 main.py --file src/ru/src/$${inputFile} --output src/en/src/$${inputFile}
|
|
|
|
# done
|
2022-01-18 07:00:46 +02:00
|
|
|
|
|
|
|
- name: build
|
|
|
|
commands:
|
2021-12-06 21:09:26 +02:00
|
|
|
- cd src/ru
|
|
|
|
- mdbook build
|
2022-01-21 12:22:36 +02:00
|
|
|
#- cd ../../src/en
|
|
|
|
#- mdbook build
|
2022-01-18 08:46:42 +02:00
|
|
|
|
|
|
|
- name: deploy
|
2022-01-24 07:19:47 +02:00
|
|
|
environment:
|
2022-01-24 07:22:49 +02:00
|
|
|
PASSWORD:
|
|
|
|
from_secret: INH_CANDIDATE_0
|
2022-01-18 08:46:42 +02:00
|
|
|
commands:
|
2022-01-24 07:21:13 +02:00
|
|
|
- echo "$PASSWORD"
|
2022-02-07 10:25:15 +02:00
|
|
|
- sshpass -p "$PASSWORD" scp -o StrictHostKeyChecking=no -r * root@selfprivacy.org:/var/www/docs.selfprivacy.org/
|
2022-01-18 07:00:46 +02:00
|
|
|
|