This repository has been archived on 2024-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
galaxy/.drone.yml

74 lines
1.6 KiB
YAML
Raw Normal View History

2020-01-21 00:46:04 +00:00
---
kind: pipeline
name: default
concurrency:
limit: 1
steps:
- name: assets
image: byrnedo/alpine-curl
commands:
2020-01-22 10:59:58 +00:00
- 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
2020-01-21 00:46:04 +00:00
- name: sync
image: xoxys/git-batch:latest
commands:
- git-batch
- name: build
image: klakegg/hugo:0.59.1-ext-alpine
commands:
- hugo-official
- name: freeze
image: appleboy/drone-ssh
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
settings:
host:
from_secret: ssh_host
key:
from_secret: ssh_key
rm: true
source: public/*
2020-01-22 11:27:58 +00:00
strip_components: 1
2020-01-21 00:46:04 +00:00
target: /var/www/virtual/geeklab/html/galaxy.geekdocs.de/
username:
from_secret: ssh_username
- name: cleanup
image: appleboy/drone-ssh
settings:
host:
from_secret: ssh_host
key:
from_secret: ssh_key
script:
- 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/
username:
from_secret: ssh_username
trigger:
ref:
2020-01-21 00:48:38 +00:00
- refs/heads/master
2020-01-21 00:46:04 +00:00
- refs/pull/**
---
kind: signature
2020-01-22 18:39:55 +00:00
hmac: d65933ea82b8ca4838f06d6a3d0d2db606d7fabf092a64c63027884489698cd7
2020-01-21 00:46:04 +00:00
...