ad5001.eu/ci/drone.yml
Ad5001 afb5da1ae9
Some checks failed
continuous-integration/drone/push Build is failing
Trying a bit of debugging.
2021-08-08 23:53:56 +02:00

60 lines
1.3 KiB
YAML

kind: pipeline
name: default
clone:
git:
image: plugins/git
recursive: true
steps:
- name: Build dev.ad5001.eu
image: xdevbase/hugo-builder:latest
commands:
- ls themes/omegamma
- ls themes/omegamma/layouts/shortcodes
- hugo -b https://dev.ad5001.eu
when:
event: [ push, tag ]
branch: [ main ]
- name: Deploy dev.ad5001.eu
image: appleboy/drone-scp
settings:
host:
from_secret: SSH_HOST
username:
from_secret: SSH_USERNAME
password:
from_secret: SSH_PASSWORD
target:
from_secret: DEV_WWW_PATH
source: public/*
when:
event: [ push, tag ]
branch: [ main ]
- name: Build ad5001.eu
image: plugins/hugo
settings:
hugo_version: 0.80
validate: true
when:
event: [ push, tag ]
branch: [ prod ]
- name: Deploy ad5001.eu
image: appleboy/drone-scp
settings:
host:
from_secret: SSH_HOST
username:
from_secret: SSH_USERNAME
password:
from_secret: SSH_PASSWORD
target:
from_secret: PROD_WWW_PATH
source: public/*
when:
event: [ push, tag ]
branch: [ prod ]