This repository has been archived on 2023-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
geeklabor_legacy/.drone.yml

30 lines
763 B
YAML
Raw Normal View History

2018-12-19 23:13:43 +00:00
pipeline:
build-draft:
image: alpine
commands:
- wget https://github.com/gohugoio/hugo/releases/download/v0.52/hugo_0.52_Linux-64bit.tar.gz -q -O - | tar -xz
2018-12-20 09:19:03 +00:00
- ./hugo -D -E -F --theme geeklab
2018-12-19 23:13:43 +00:00
when:
branch: draft
event: push
build-prod:
2018-12-20 09:06:56 +00:00
image: alpine
2018-12-20 09:08:05 +00:00
commands:
- wget https://github.com/gohugoio/hugo/releases/download/v0.52/hugo_0.52_Linux-64bit.tar.gz -q -O - | tar -xz
2018-12-20 09:19:03 +00:00
- ./hugo -F --theme geeklab
2018-12-19 23:13:43 +00:00
when:
branch: master
event: push
publish:
image: appleboy/drone-scp
source: public/*
2018-12-20 00:21:11 +00:00
target: /var/www/virtual/geeklab/html/geeklabor.de/
secrets: [ ssh_host, ssh_username, ssh_key ]
strip_components: 1
2018-12-20 08:40:34 +00:00
rm: true
when:
branch: master
event: push