vbrandl.net/.drone.yml
Valentin Brandl 50d66fd639
Some checks failed
continuous-integration/drone/push Build is failing
Hugo version
2019-08-10 02:56:32 +02:00

111 lines
2.4 KiB
YAML

kind: pipeline
name: build
steps:
- name: submodules
image: docker:git
commands:
- git submodule update --init --recursive
- name: docker
image: plugins/docker
settings:
hugo_version: 0.56.3
repo: vbrandl/vbrandl.net
username:
from_secret: docker_username
password:
from_secret: docker_password
ref:
- refs/heads/master
# pipeline:
# restore-cache-dev:
# image: drillster/drone-volume-cache
# restore: true
# mount:
# - public
# volumes:
# - /home/gitea/gitea/drone_build_cache/staging.vbrandl.net:/cache
# when:
# branch: develop
# restore-cache-prod:
# image: drillster/drone-volume-cache
# restore: true
# mount:
# - public
# volumes:
# - /home/gitea/gitea/drone_build_cache/vbrandl.net:/cache
# when:
# branch: master
# build-dev:
# image: plugins/hugo:latest
# buildDrafts: true
# buildFuture: true
# buildExpired: true
# hugoVersion: "0.49"
# validate: true
# url: https://staging.vbrandl.net
# when:
# branch: develop
# build-prod:
# image: plugins/hugo:latest
# buildDrafts: false
# buildFuture: false
# buildExpired: false
# hugoVersion: "0.49"
# validate: true
# url: https://www.vbrandl.net
# when:
# branch: master
# compress:
# image: alpine:latest
# commands:
# - apk --no-cache update
# - apk add make
# - make -C public/ -f ../Makefile
# deploy-dev:
# image: drillster/drone-rsync
# hosts: [ "vbrandl.net" ]
# target: /var/www/staging.vbrandl.net
# source: public/*
# user: hugo
# secrets: [ rsync_key ]
# when:
# branch: develop
# deploy-prod:
# image: drillster/drone-rsync
# hosts: [ "vbrandl.net" ]
# target: /var/www/vbrandl.net
# source: public/*
# user: hugo
# secrets: [ rsync_key ]
# when:
# branch: master
# rebuild-cache-dev:
# image: drillster/drone-volume-cache
# rebuild: true
# mount:
# - public
# volumes:
# - /home/gitea/gitea/drone_build_cache/staging.vbrandl.net:/cache
# when:
# branch: develop
# rebuild-cache-prod:
# image: drillster/drone-volume-cache
# rebuild: true
# mount:
# - public
# volumes:
# - /home/gitea/gitea/drone_build_cache/vbrandl.net:/cache
# when:
# branch: master