Trying automated building.

This commit is contained in:
Adsooi 2021-08-08 22:29:48 +02:00
parent 443f7e3e95
commit 25a6cd391f
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
2 changed files with 116 additions and 0 deletions

44
ci/drone.yml Normal file
View file

@ -0,0 +1,44 @@
kind: pipeline
type: ssh
name: default
server:
host:
from_secret: SSH_HOST
user:
from_secret: SSH_USERNAME
password:
from_secret: SSH_PASSWORD
steps:
- name: Deploy on dev.ad5001.eu
environment:
DEV_WWW_PATH:
from_secret: DEV_WWW_PATH
commands:
- cd "$DEV_WWW_PATH"
- git pull
- cd themes/Omegamma
- git pull
- cd ../..
- rm -rf public
- hugo --config ci/dev.config.yml
when:
event: [ push, tag ]
branch: [ master ]
- name: Deploy on ad5001.eu
environment:
DEV_WWW_PATH:
from_secret: DEV_WWW_PATH
commands:
- cd "$PROD_WWW_PATH"
- git pull
- cd themes/Omegamma
- git pull
- cd ../..
- rm -rf public
- hugo
when:
event: [ push, tag ]
branch: [ prod ]