ci: update

This commit is contained in:
0xMRTT 2023-05-10 15:11:34 +02:00
parent 866ed69e88
commit 37eec41549
Signed by: 0xmrtt
GPG key ID: 19C1449A774028BD

View file

@ -3,22 +3,22 @@ clone:
image: bash
commands:
- cd /home/0xmrtt
- if [ -d imaginer-pages ]; then
- cd imaginer-pages
- if [ -d bavarder-pages ]; then
- cd bavarder-pages
- git pull
- git submodule update
- else
- git clone --recursive https://git.exozy.me/0xMRTT/imaginer-pages.git
- git clone --recursive https://git.exozy.me/0xMRTT/bavarder-pages.git
- fi
pipeline:
build:
image: bash
commands:
- cd /home/0xmrtt/imaginer-pages
- cd /home/0xmrtt/bavarder-pages
- hugo --minify
- cp -rf public/* /home/0xmrtt/imaginer-pages-public
- cd /home/0xmrtt/imaginer-pages-public
- cp -rf public/* /home/0xmrtt/bavarder-pages-public
- cd /home/0xmrtt/bavarder-pages-public
- git add .
- git commit -m "Update"
- git push