Trying automated building.
This commit is contained in:
parent
443f7e3e95
commit
25a6cd391f
2 changed files with 116 additions and 0 deletions
44
ci/drone.yml
Normal file
44
ci/drone.yml
Normal 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 ]
|
Loading…
Add table
Add a link
Reference in a new issue