---
kind: pipeline
name: default
concurrency:
limit: 1
steps:
- name: assets
image: byrnedo/alpine-curl
commands:
- mkdir -p themes/hugo-geekdoc/
- curl -L https://github.com/xoxys/hugo-geekdoc/releases/latest/download/hugo-geekdoc.tar.gz | tar -xz -C themes/hugo-geekdoc/ --strip-components=1
- name: sync
image: xoxys/git-batch:latest
- git-batch
- name: build
image: klakegg/hugo:0.59.1-ext-alpine
- hugo-official
- name: freeze
image: appleboy/drone-ssh:1.5.5
settings:
host:
from_secret: ssh_host
key:
from_secret: ssh_key
script:
- cp -R /var/www/virtual/geeklab/html/galaxy.geekdocs.de/ /var/www/virtual/geeklab/html/galaxy_freeze/
- ln -sfn /var/www/virtual/geeklab/html/galaxy_freeze /var/www/virtual/geeklab/galaxy.geekdocs.de
username:
from_secret: ssh_username
- name: publish
image: appleboy/drone-scp
rm: true
source: public/*
strip_components: 1
target: /var/www/virtual/geeklab/html/galaxy.geekdocs.de/
- name: cleanup
- ln -sfn /var/www/virtual/geeklab/html/galaxy.geekdocs.de /var/www/virtual/geeklab/galaxy.geekdocs.de
- rm -rf /var/www/virtual/geeklab/html/galaxy_freeze/
trigger:
ref:
- refs/heads/master
- refs/pull/**
kind: signature
hmac: 7aa0385e8077d0ca1755fa1484098789a8567d551a329379820e4aac328bae2a
...