This commit is contained in:
parent
fd745797cc
commit
269eec0c4b
53
.drone.yml
53
.drone.yml
@ -2,6 +2,10 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
limit: 1
|
limit: 1
|
||||||
|
|
||||||
@ -22,52 +26,27 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- hugo-official
|
- 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
|
- name: publish
|
||||||
image: appleboy/drone-scp
|
image: plugins/s3
|
||||||
settings:
|
settings:
|
||||||
host:
|
access_key:
|
||||||
from_secret: ssh_host
|
from_secret: s3_access_key
|
||||||
key:
|
bucket: geekdocs
|
||||||
from_secret: ssh_key
|
delete: true
|
||||||
rm: true
|
endpoint: https://sp.rknet.org
|
||||||
|
path_style: true
|
||||||
|
secret_key:
|
||||||
|
from_secret: s3_secret_access_key
|
||||||
source: public/*
|
source: public/*
|
||||||
strip_components: 1
|
target: ${DRONE_REPO_NAME}
|
||||||
target: /var/www/virtual/geeklab/html/galaxy.geekdocs.de/
|
|
||||||
username:
|
|
||||||
from_secret: ssh_username
|
|
||||||
|
|
||||||
- name: cleanup
|
|
||||||
image: appleboy/drone-ssh:1.5.5
|
|
||||||
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:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/master
|
- refs/heads/master
|
||||||
- refs/pull/**
|
- refs/pull/**
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 786a4014e58c7619b881393cec592ed3ba5f186da67558c43663cc0d9dc07b92
|
hmac: d2a509c25adf88f4e2227a7e87fe9ad37025e41c71ef038ad21608818a7b8170
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Reference in New Issue
Block a user