ci: update
This commit is contained in:
parent
866ed69e88
commit
37eec41549
|
@ -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
|
Loading…
Reference in a new issue