add workflow
parent
c89837e35e
commit
5c5098de2c
10
README.md
10
README.md
|
@ -1,10 +1,18 @@
|
||||||
# Сайт selfprivacy.org
|
# Сайт selfprivacy.org
|
||||||
|
|
||||||
|
## Архитектура
|
||||||
* CMS — https://gohugo.io/
|
* CMS — https://gohugo.io/
|
||||||
* Тема — https://github.com/mitrichius/hugo-theme-anubis
|
* Тема — https://github.com/mitrichius/hugo-theme-anubis
|
||||||
* Графика - https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html
|
* Графика - https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html
|
||||||
* Проверка орфографии и чистоты текста — https://glvrd.ru/
|
* Проверка орфографии и чистоты текста — https://glvrd.ru/
|
||||||
|
|
||||||
|
## Процесс разработки
|
||||||
|
1. `git clone --recursive gitea@git.selfprivacy.org:SelfPrivacy/selfprivacy.org.git`
|
||||||
|
1. Каментим коммиты на английском (рука не поднимается на русском коммит описывать)
|
||||||
|
1. Перед коммитом: `hugo -D server --disableFastRender`
|
||||||
|
1. `git push` выкатит сайт на прод
|
||||||
|
|
||||||
|
## Деплой CI/CD
|
||||||
Билдится и выкатывается git post-receive хуком на каждый коммит
|
Билдится и выкатывается git post-receive хуком на каждый коммит
|
||||||
```sh
|
```sh
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
@ -41,3 +49,5 @@ mv $TARGET $SITE_DIR
|
||||||
echo " Removing temporary directory."
|
echo " Removing temporary directory."
|
||||||
rm -rf $TEMP_DIRECTORY
|
rm -rf $TEMP_DIRECTORY
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue