ad5001.eu/ci/drone.yml

45 lines
749 B
YAML

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:
PROD_WWW_PATH:
from_secret: PROD_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 ]